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

Answer by Nick Kahn for How can I grab the current url and assign it to a...

VB.NET'static variablePrivate 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 =...

View Article


Answer by George Johnston for How can I grab the current url and assign it to...

You can find this in the request object. e.g. Request.Url.AbsoluteUriDim url As String = Request.Url.AbsoluteUri

View Article


How can I grab the current url and assign it to a variable using vb and asp.net?

I have a form that the user fills out and submits. I have vb code that converts that form into an email and sends it to me. I need to know what page it is coming from so I want to assign the current...

View Article
Browsing latest articles
Browse All 3 View Live