Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

Request.UrlReferrer.ToString();

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

 
discard

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.