logo
  You are not logged in Join Log In
Navigation
Log In
[join]

[lost]

 
User Info
 Post to programmabilities.post [at] blogger.com
blogroll

Programmabilities Blog

2006-10-29

 
ViewState("UrlReferrer")
Sub Page_Load()
    If Page.IsPostBack = False Then
        ' Store URL Referrer to return to home page.
        ViewState("UrlReferrer") = Me.Request.UrlReferrer.ToString()
    End If
End Sub

Sub CancelBtn_Click()
    ' Redirect back to the home page.
    Me.Response.Redirect(CType(ViewState("UrlReferrer"), String))
End Sub

Labels:

Comments: Post a Comment

Links to this post:

Create a Link



<< Home
Bio
The power of a network increases at a rate in proportion to the square of the number of users on that network.Metcalfe's Law
I'm a legally Ordained Minister in the US with ULC. Donate love offerings to my Ministry here: tithe.
Archives
200601
200607
200608
200610
200611
200705
200706
200707
200708
200709
200711
200712
200802
200803
200805