JavaScript Alerts with .NET

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

    JavaScript Alerts with .NET

    Say I have a Server Side button that I'm using in ASP.NET. The button does
    some validation and uses a javascript alert box to give the answer to a
    user. I can get this to work, by dynamically writing out the javascript for
    the alert after the Server Side evaluation code...but as long as the alert
    sits there, the page is blank after it posts back. Is there an easy way to
    prevent this? I certainly don't want to write out the code for evaluation
    in JavaScript. Sorry if this is unclear.

    Thanks


  • Cor Ligthert [MVP]

    #2
    Re: JavaScript Alerts with .NET

    James,

    It opens the default webclient, however the problem is in my opinion the
    same.

    \\\
    Me.Button1.Attr ibutes("onClick ") =
    "window.locatio n='mailto:non@n on.com?subject= Cor demo&body=I hope this
    helps?';"
    ///

    I hope this helps,

    Cor


    Comment

    Working...