MessageBox

  • Thread starter Thread starter rodriguesd
  • Start date Start date
R

rodriguesd

How to make a MessageBox in ASP.NET and get back a return value ?
Thanks

DR
 
Hello,

Sorry, but there is no MessageBox in ASP.Net as you are use to in Win Forms.
However, there are plenty of options depending on what you want to do.

1) Use Response.Write("Value: " + value);

2) Set a label or textbox control on the web form and then in code set the
Text property. i.e. txtValue.Text = value;

3) Use the normal debugging techniques such as hovering over the variable,
watch window, or execute a command in the command window (?value).

Hope that helps,

Tom Krueger
Blue Pen Solutions
http://www.BluePenSolutions.com
 
This would all have to happen in the client browser. You can use the
JavaScript confirm(message) function, which returns a value of true or
false. Then, if necessary, you can do a PostBack to get the return value
back to the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Back
Top