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!

messagebox 1

Status
Not open for further replies.

willdevelope

Programmer
Nov 18, 2005
25
US
How do I create a message box to pop up, if text box is empty once clicking on button using asp.net C#

2. How do I click on command button and display whatever date typed in text box to display in message box back to the user in asp.net C#

I am rookie so any extra advice would be helpful.

Thanks in advance
 
How do I create a message box to pop up, if text box is empty once clicking on button using asp.net C#
asp.net has 2 distinct environments. the client (javascript) and the server (.net) you would not use a message box like you find in windows applications. as this code executes on the server.

with javascript a message box is displayed like this
Code:
<input type="button" onclick="alert('hello world');" value="click me" />
How do I click on command button and display whatever date typed in text box to display in message box back to the user in asp.net C#
Code:
<input type="textbox" id="foo" />
<input type="button" onclick="alert(document.getElementById('foo').value);" value="click me" />

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top