Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request.Querystring not working

Status
Not open for further replies.

endoflux

Technical User
Aug 6, 2001
227
US
My querystring is coming through fine, and my form default values work fine if I substitute plain text for the Request.QueryString code, but my querystring values aren't showing up when coded as follows:

Code:
' URL, truncated for this example:
[URL unfurl="true"]http://localhost/sterilization/newsln/new_enter_sln.asp?Problem=1&company=&lotnumber=9ZZZ99&packnumber=12345[/URL]

' Form template (repeated for each field)
    <tr>
    <td width=25></td>
    <td valign=middle>&nbsp;&nbsp;Sterile Lot Number</td>
    <td height=40>&nbsp;&nbsp;<input type="text" autocomplete="off" name="lotnumber" size="40" maxlength="50" value="<% Request.Querystring("lotnumber") %>"></td>
    </tr>
 
I think it may be as simple as you're missing the Response.Write directive:
Code:
' URL, truncated for this example:
[URL unfurl="true"]http://localhost/sterilization/newsln/new_enter_sln.asp?Problem=1&company=&lotnumber=9ZZZ99&packnumber=12345[/URL]

' Form template (repeated for each field)
    <tr>
    <td width=25></td>
    <td valign=middle>&nbsp;&nbsp;Sterile Lot Number</td>
    <td height=40>&nbsp;&nbsp;<input type="text" autocomplete="off" name="lotnumber" size="40" maxlength="50" value="<%[COLOR=red]=[/color]Request.Querystring("lotnumber") %>"></td>
    </tr>
Hope this helps!
 
That was exactly it! So simple...hmmm.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top