MessageBox

  • Thread starter Thread starter rodriguesd
  • Start date Start date
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.
 
Back
Top