|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
the querystring thing is a real stumper! (thanks Bill)
<i><b>Originally posted by : Dave Z (diziDOG@aol.com)</b></i><br />YUor input (Bill) is reallt appreatiated, but I think your suggestion was one of my first attempts.<br />It still displays the entire querystring whether it is empty or not. Results such as:<br /><br />item1 23<br />item2 <br />item3 2<br /><br />What I am looking for is:<br /><br />item1 23<br />item3 2<br /><br /><br />For each item in request.querystring<br />If Not isEmpty(Request(item)) Then<br />response.write("<tr><td>"& item&" "& request.querystring(item) & "</td></tr>")<br />End If<br />next <br />response.write("</table>")<br /><br />Gives the first result. No good. Is there a way to remove the null fields before they get to the querystring? probably the same solution for Abs in an earlier post.<br /><br />Thanks in advance and hopefully I can put my 2 cents in around here! At least the easy ones.<br />Dave<br /><br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : sam</b></i><br />You can try like this.<br /><%If Len(Request.Form("Item")) <> 0 then<br /> Response.write...<br /> end if<br />%> or<br /><%If Request.Form("Item") = "" then<br /> Response.write...<br /> end if<br />%><br /><br /><br /><br />------------<br />Dave Z at 3/10/2000 1:52:41 AM<br /><br />YUor input (Bill) is reallt appreatiated, but I think your suggestion was one of my first attempts.<br />It still displays the entire querystring whether it is empty or not. Results such as:<br /><br />item1 23<br />item2 <br />item3 2<br /><br />What I am looking for is:<br /><br />item1 23<br />item3 2<br /><br /><br />For each item in request.querystring<br />If Not isEmpty(Request(item)) Then<br />response.write("<tr><td>"& item&" "& request.querystring(item) & "</td></tr>")<br />End If<br />next <br />response.write("</table>")<br /><br />Gives the first result. No good. Is there a way to remove the null fields before they get to the querystring? probably the same solution for Abs in an earlier post.<br /><br />Thanks in advance and hopefully I can put my 2 cents in around here! At least the easy ones.<br />Dave<br /><br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > the querystring thing is a real stumper! (thanks Bill) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|