Guy,
Javascript functions alert and confirm is the way to go. You put them in
the client-side onclick event handlers. Example:
In the <head> section of your aspx page:
<script>
function askUser(text)
{
return confirm(text);
}
</script>
In the < body> section:
<ASP:Button id=myButton runat=server onclick="return askUser('Please
confirm...')" ...
In this simple case you could write just
<ASP:Button id=myButton runat=server onclick="return confirm('Please
confirm...')" ...
without having a separate script in the <head> section. I just wanted to
demonstrate you the general way of doing this sort of things.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
Guy Cohen said:
Hi all
How do I present questions/messages to the user while I am in a CLICK
event of a button ?
I was told to look for javascript/vbscript but could not make it work.
Please advise
Guy