|
|||||||
| ASP Discussion and technical support for using and deploying Active Server Pages. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
am currently in the middle of constructing a form using visual studio 2008, its on asp.net c# code, the first form is to submit the data into a database and send out an email to the relevant person to say that’s its been submit with a link to view the form link e.g. view_form.apsx?id=5 it emails out the link to the person based upon the id of the new row in the database, up to here i have working how do i get the view_form to retrieve the id from the url and use it to fill out the printable version of the form. this is based upon a building maintenance form so it has multiple labels on how locations and maintenance required along with the persons details the information to be retrieved is as follows, date, center, requestby, section, email, location1, repair2, location2, repair2, urgency any help on this would be very appreciated thanks |
|
#2
|
|||
|
|||
|
if you are just asking how to get the query string value here is the snippet
in the codebehid file of view_form protected void Page_Load(object sender, EventArgs e) { string strid; strid = Request.QueryString["id"]; Response.Write(strid); } after getting the id value in the strid variable, utilize to refill the new form. |
|
#3
|
|||
|
|||
|
ahh ya i noticed i didnt explain it properly as looking over it i have missed things out sorry
i have 2 pages, 1st is the form, 2nd is the information view page. when the first page is filled in and submit it submits the information into a LINQ database (using visual studio to design it) once the information is within the database it emails out a form with a link with the id in the url e.g. view_form.aspx?id=7 i then need the 2nd page to get the id from the url, i have this code for that PHP Code:
e.g. email into lblemail, name to lblname thanks for the help
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|