Quantcast
Channel: How can I grab the current url and assign it to a variable using vb and asp.net? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Nick Kahn for How can I grab the current url and assign it to a variable using vb and asp.net?

$
0
0

VB.NET'static variable

Private Shared prevPage As String = String.EmptyProtected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load        If (Not IsPostBack) Then            prevPage = Request.UrlReferrer.ToString()        End IfEnd Sub

Viewing all articles
Browse latest Browse all 3

Trending Articles