Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create an error window in web application with C#

Status
Not open for further replies.

volpebianca

Programmer
Oct 19, 2004
3
0
0
IT
Good evening,
i have a problem: i have created a little web application with some textbox. If user writes in these textbox i want that appears an error window. For example if there is a textbox which has to contain only positive integer and user writes "-1", i want that an error window appears. Into the window there is a label: "only positive integer", and a OK button, when user click button returns in the main webForm. How can i create this with Csharp?
Thank you very much.
 
since C#'s MessageBox would only run on the server you cannot use that (which, I don't think MessageBox.show is even valid in ASP.Net) the best shot you'd have would be making an html message box.

Good luck,
Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top