JavaScript Alerts with .NET

  • Thread starter Thread starter James
  • Start date Start date
J

James

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
 
James,

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

\\\
Me.Button1.Attributes("onClick") =
"window.location='mailto:[email protected]?subject=Cor demo&body=I hope this
helps?';"
///

I hope this helps,

Cor
 
Back
Top