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

Need to catch a URL variable 1

Status
Not open for further replies.

Bammy217

Programmer
Sep 28, 2002
74
BE
Heya,

Ok I'm making the conversion from Cold Fusion to ASP (Started today ;) ) and would like to ask you guys a question. I'm running a SQL Stored procedure, and need to feed it some variables (IDs of 2 ITEMS) so am using "testpage.asp?Pid=12&Sid=88" now all I want to do is get my IIS to feed this to SQLServer " exec ssp_GetPage '12', '88' "

And then display the results, Now I've figured out how to get ASP to Execute a Stored Procedure, but am still unable to feed it a variable specified by the URL...

Please Help
D. We never fail, we just find that the path to succes is never quite what we thought...
 
testpage.asp?Pid=12&Sid=88

to call

request.querystring("Pid")
request.querystring("Sid")

is that what your looking for _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
[tt]
oConnection.Execute("EXEC ssp_GetPage '" &_
request.querystring("Pid") & "','" &_
request.querystring("Sid") & "'")[/tt] =========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top