hi..
pls anyone send me coding for MessageBox in default.aspx.cs
i used
messagebox.show(message); but its not working...
MessageBox
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Nov 30, 2010, 4:29 AM EST
already answered here.
http://www.c-sharpcorner.com/Forums/UploadFile/100691/
CrishRank #1,487 · 1.1K reputationPosted Dec 4, 2010, 12:23 AM EST
I had same problem.You can use below code to solve the issue of message box in default.aspx.c.
protected void button_Click(object sender, System.EventArgs e) { if(textBox.Text == "") { MessageBox.Show("You must enter a name.", "Name Entry Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { // Code to act on the data entered would go here. } }