I am trying to insert a new record. The problem is that ther are like 4 pages of fields that need to be filled in. How can I insert the info from page 1, pass the id number, and then do pages 2-4 as a record update(or keep going throug all 4 pages as 1 insert)?
1. You could use a hidden field to pass the id number using a hidden field like so:
<input type="hidden" name="idno" value="<%youridnumber%>">
2. You could write the idno to a session variable in the asp code like so"
<%Session("idno" = "youridnumber"%>
and then when you need to call it on subsequent pages simply use
<%Response.Write Session("idno"%>
or whatever you need to do with it.
My personal preference is to use hidden fields as it reduces processing by the server but if your site has a relatively small number of users session object should be ok.
Hope this helps.
Justin X-)
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
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.