Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Can I use Request to Accept query String

Reply
Thread Tools

Can I use Request to Accept query String

 
 
hon123456
Guest
Posts: n/a
 
      12-01-2008
Dear all,

I got a link as follows:

<a href="outdolistdata.asp?user=<%=user%>&outboundno= <
%=stroutboundno%>&inboundno=<%=strinboundno%>&hous e=<%=strhouse
%>&house1=<%=strhouse1%>&refno=<%=strrefno%>&invoi ceno=<%=strinvoiceno
%>&HAWB=<%=strHAWB%>&pono=<%=strpono%>&HAWBno=<%=s trHAWBno%>&NAV=<
%=intPageCount%>">Last Page</a>


Can I just use request("user"), request("outboundno"), request
("inboundno") to accept
the query string in the Link. As I found in the web page, only
request.querystring can be used to
accept the querystring in the link. My question is can I just use
request("something") to accept
outdolistdata?something="abc" but not using request.querystring.

Thanks.
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      12-01-2008
hon123456 wrote:
> Dear all,
>
> I got a link as follows:
>
> <a href="outdolistdata.asp?user=<%=user%>&outboundno= <
> %=stroutboundno%>&inboundno=<%=strinboundno%>&hous e=<%=strhouse
> %>&house1=<%=strhouse1%>&refno=<%=strrefno%>&invoi ceno=<%=strinvoiceno
> %>&HAWB=<%=strHAWB%>&pono=<%=strpono%>&HAWBno=<%=s trHAWBno%>&NAV=<
> %=intPageCount%>">Last Page</a>
>
>
> Can I just use request("user"), request("outboundno"), request
> ("inboundno") to accept
> the query string in the Link. As I found in the web page, only
> request.querystring can be used to
> accept the querystring in the link. My question is can I just use
> request("something") to accept
> outdolistdata?something="abc" but not using request.querystring.
>

You can, but: it will hurt performance slightly and might lead to unexpected
results. Read this:
http://classicasp.aspfaq.com/forms/w...form-item.html


--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Bullschmidt
Guest
Posts: n/a
 
      12-11-2008
And in the future you COULD perhaps have a page that can accept a
querystring and/or a post so being explicit using Request.Form() for
posted variables and Request.Querystring() for querystring variables
might actually do yourself a favor (less confusion) sometime in the
future when you look back on a site and try to understand the code...

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert url with query string to url without query string nick Javascript 1 02-13-2011 11:20 PM
CGI - How to use upload_hook and query the query string ? roadrunner Perl Misc 1 02-08-2006 01:50 AM
Can I use XPath or something to a remote Mac or Linux box and just query an xml file, not using web services and use encyrption? jake ASP .Net 0 07-06-2004 02:16 PM
How to set the timeout and no. of accept request Mullin Yu ASP .Net Web Services 1 04-30-2004 03:38 PM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM



Advertisments