K
Ken McCrory
I have a registration page (yeah, it's me again.). The confirmation page
uses the code below to transfer the parameters passed from the first page to
the Insert command parameters then it writes the record to the database.
MoveDataToRecord() 'transfers the Params passed from the first page
to the Insert command parameters
dbconnASM.Open()
dbcmdInsert.ExecuteNonQuery()
dbconnASM.Close()
These four lines work fine if I put them in the Page_Load event. A record
gets written to the database. HOWEVER, if I move those same lines inside a
button click event I get errors that say there isn't any data in the Insert
command parameters.
How long to the Request.Params last? Are they deleted right after the page
is loaded?
uses the code below to transfer the parameters passed from the first page to
the Insert command parameters then it writes the record to the database.
MoveDataToRecord() 'transfers the Params passed from the first page
to the Insert command parameters
dbconnASM.Open()
dbcmdInsert.ExecuteNonQuery()
dbconnASM.Close()
These four lines work fine if I put them in the Page_Load event. A record
gets written to the database. HOWEVER, if I move those same lines inside a
button click event I get errors that say there isn't any data in the Insert
command parameters.
How long to the Request.Params last? Are they deleted right after the page
is loaded?