using Request.UrlReferrer in vb.net code
i saw this article on msdn forum about Request.UrlReferrer but didnt really understand it well. I need to use this property in one of my pages to see where the user is coming from. My case is if the user comes from certain page, i need to have an if condition and should open up a popup as well as redirect page to next page. if the Request.UrlReferrer is null then i dont need the popup, just开发者_Python百科 goto next page. can somebody put a sample code snippet here? this is what i have so far -
Public ReadOnly Property URLReferrer() As uri
Get
End Get
End Property
i am not sure what to put with the Get and End Get.
UrlReferrer is already a property of the Request, you don't need to declare it. Just use the instance of the Request from the Page object (assuming web forms). Page.Request.UrlReferrer
精彩评论