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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Question

Status
Not open for further replies.

aarushi2001

Technical User
Nov 16, 2005
109
US
Hi,

This my first time in ASP thread and am a beginner. Till now I have used JSP but for a certain project of mine I have to use ASP. I have this question:

I have a url: strname %>

How can I extract the value for state, and then use it to display records from DB where state equals <%= strname %>

Thanks
 
Use Request.Querystring


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
and after you use the QueryString to get the value.... use ADO to query the DB...
 
I also don't know if this is correct syntax:

Code:
<[!];[/!]%= strname %>

But I could be wrong.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Thanks Sheco and ca8sms..

kaht, u were right.. made a mistake while doing copy+paste :)
 
is a good reference site to keep around for ASP. The ASP and ADO sections were extremely helpful to me back when I was learning ASP. They have some beginning tutorials and a fairly extensive object reference with examples.



barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top