Using window.confirm

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JJ297

    Using window.confirm

    I want a confirmation as such and after the user clicks the okay
    button go to the home page. Do I do something as such?

    Submit.Attribut es.Add("onclick ", "return window.confirm( 'Your entry
    was submitted.')")
    Response.Redire ct("Library.asp x")

    Do I put it in the page load or submit_click?

    Thanks.
  • Peter Bucher [MVP]

    #2
    Re: Using window.confirm

    Hello ??
    Submit.Attribut es.Add("onclick ", "return window.confirm( 'Your entry was
    submitted.')")
    --Page_Load
    Response.Redire ct("Library.asp x")
    --Button_Click

    --
    Gruss, Peter Bucher
    Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
    http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET


    Comment

    • JJ297

      #3
      Re: Using window.confirm

      On Feb 26, 11:35 am, "Peter Bucher [MVP]" <peter.buc...@a spnetzone.de>
      wrote:
      Hello ??
      >
      Submit.Attribut es.Add("onclick ", "return window.confirm( 'Your entry was
      submitted.')")
      >
      --Page_Load
      >
      Response.Redire ct("Library.asp x")
      >
      --Button_Click
      >
      --
      Gruss, Peter Bucher
      Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp ://www.aspnetzone. de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone. de/blogs/peterbucher/- Auf den Spuren von .NET
      Thanks!

      Comment

      Working...