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

Split URL ?

Status
Not open for further replies.
Look into the Requst.Url and/or Request.Uri. this will tell you were you are coming form.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Thanks Jason,

I've looked through them and I think all I can do is to split the returned string to get what I want. Is this the only way or does the Namespace have a property that returns this automatically (I can't find one unfortunately)?

Cheers,
Jack

 
There is a member of either the Context or Request that has a number of functions related to parsing the url. You should be able to to use those members, and possiblity some string parsing/regex to extract the domain.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top