|
-
Jan 15th, 2005, 10:51 AM
#1
Thread Starter
Addicted Member
Help needed simple question...
Hello guys
I have made a simple web application.
It loads data from a database and then lets the user change the data and then save it by clicking the submit button.
see code below...
---------------------------------------------
Dim objCmd As New SqlCommand
objCmd.Connection = objConn
objConn.Open()
Dim strSQL As String = "saveDetails"
objCmd.CommandText = strSQL
objCmd.CommandType = CommandType.StoredProcedure
objCmd.Parameters.Add("@dr_id", id)
objCmd.Parameters.Add("@address", SqlDbType.NVarChar, 80).Value = addressBox.Text
objCmd.ExecuteNonQuery()
objConn.Close()
Response.Redirect("./doctors.aspx")
---------------------------------------------
address box is just a web forum textbox
For some reason addressBox.Text doesn't pick up the modified data.
The only way I can get the modifield data to be picked up is by using
request("addressBox")
does anyone know why this is??
any help is greatly appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|