SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Web 1 and Web 2, I also have a link of Web 2 in Web 1 using a link button in a SharePoint Site.

Now If I click on Link button situated on Web 1 it takes me to Web 2, I Have a User Control on Web 2, and In this user control, I want URL of Web 1, I am not sure how I will be doing it as i dont have a lot of experience in ASP.NET but i guess its something to do with View State or "SPContext.Current.Web.Properties[]".

share|improve this question
up vote 1 down vote accepted


this is what i was looking for, it gives you the address of client yu navigated to current page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.