dialog message displays on server

K

Kevin

I am rather new at Web program so I am starting off with some small stuff,
but still having problems. I want to display a message box to the user when
they click a button, but the message box displays on the server and not on
the client.
Can anyone tell me what i am doing wrong?
The command for the message box is:
MessageBox.Show("The anniversary date has been changed for all employees",
"Anniversary Date", MessageBoxButtons.OK, MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
 
A

Aaron [SQL Server MVP]

You can't perform a MsgBox from the server side. Did you mean to return
client-side code, e.g.

<script>
alert("Hello");
</script>
 
K

Kevin

thanks, I've tried this but it is not a modal dialog and my next statement
redirects to another page. What do i need to do to make processing stop and
have the user click an OK button?
 

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

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,897
Members
47,439
Latest member
shasuze

Latest Threads

Top