Here's an Update on my progress, and i'm suck once again, but I think i'm real close...
I took a bit of a different approach, grabbed my big ASP.NET unleashed book...and took this approach...
<%@ Page Language="vb" Debug="true" %>
<%@ import Namespace="System.Data" %>
<%@ import...
My ID field is an autonumbered field. I'm creating an access database through the Microsoft Web Matrix, and it seems to really really suck. This may be the first of many problems, but hey, right now, most of what I want is working and i'm new, so this is progress.
I have the WHERE clause put...
Problem with that is, it's too much too look at and try and fish out my answer from it...i'm running under the assumption i'm missing one or two small things to get this to work.
I know it is passing the querystring across, but it isn't displaying the record...why not?
Caden
P.S. thanks for...
Here is the HTML code of my Datagrid.
I'll add the WHERE clause, but if you don't mind, toss up that working code of the Master-Details.
That problem you were helping me out with earlier I fixed, i'm an idiot, and it was something tiny, really, very annoying.
Thanks for the help so far.
Caden...
So, this is a bit of an update on an older post, but i've made progress and i'm stuck again.
Here's an addition.
So I found the master-details relationship, and currently, I have this...
Click on the details button on the master page and this is the code on the details page...
<%@ Page...
That's right out of my code...I get no errors and have the same problem.
Initially my web matrix was messed, so I restarted it. But no luck.
Sub entries_Update(sender as Object, e as DataGridCommandEventArgs)
Dim iD as Integer = CType(e.Item.Cells(1).Text, Integer)
Dim shortDesc as String...
Alright, I added it to my page like this...
Function Update(ByVal iD As Integer, ByVal shortDesc As String, ByVal salaryRange As String, ByVal benefits As String, ByVal longDesc As String) As Integer
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4...
I tried that...I put a label down pulling the ID of the record.
So, when I hit update, it gave me the ID that it pulled and it pulled the right number.
So I know it is pulling the values.
One small thing...I took out the ID check, and it updates now...but since there is no check it will make all fields exactly the same.
I don't know if that helps, but it should
I'm bashing my head against the desk trying to figure out why this doesn't work.
All of these idea's are great, anyone/everyone post your wacky idea's and i'll try it!
Sub Page_Load(sender As Object, e As EventArgs)
If Not Page.IsPostBack Then
entries.Datasource=getjobs()
entries.Databind()
End If
End Sub
Got that in there already
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.