JavaScript Alerts with .NET

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
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top