Connecting Tech Pros Worldwide Forums | Help | Site Map

Help: Extracting string from URL

Member
 
Join Date: Sep 2007
Posts: 71
#1: Jul 29 '08
Hi,

I have the url for the loaded page as follows:

http://localhost:1120/Tender%20Management%20System/TenderCompanyProfile.aspx?id=akr15_87@rediffmail.c om

Now i have to seperate the string "akr15_87@rediffmail.com" from the url and i have to use that string in the form_load event.

Please help me to extract the string from the url ...

Thanks in Advance....

DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 930
#2: Jul 29 '08

re: Help: Extracting string from URL


Hi Ananthu,

Use
Expand|Select|Wrap|Line Numbers
  1. SomeVariable =  Request.querystring("id")
The question mark (?) at the end of the url indicates a querystring variable.

Hope this helps,

Dr B
Member
 
Join Date: Sep 2007
Posts: 71
#3: Jul 29 '08

re: Help: Extracting string from URL


Hi,

Thanks so much for your kind reply...

It worked....

Keep in touch with me....
Reply