How to get alert message before redirect a page

前端 未结 7 1201
面向向阳花
面向向阳花 2020-12-25 07:49

I\'m using vs 2010. I need to display the message to user and redirect the page.

I use the below line.

ScriptManager.RegisterStartupScript(this, this         


        
相关标签:
7条回答
  • 2020-12-25 08:51

    Redirecting to Login page after password updated alert message

    Dim MyScript As String = "alert('Password Updated Successfully!. Please Login Again!'); window.location = '../Login.aspx';"
    

    And if your intent is to framebust your page into the top level, because your page may be inside a frame that is itself inside a frame.

    Dim MyScript As String = "alert('Password Updated Successfully!. Please Login Again!');window.top.location='../Logout.aspx';"
                ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "MyScript", MyScript, True)
    
    0 讨论(0)
提交回复
热议问题