hi..
pls anyone send me coding for MessageBox in default.aspx.cs
i used
messagebox.show(message); but its not working...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
CrishPosted Dec 4, 2010, 5:23 AM
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.
}
}
Suthish NairPosted Nov 30, 2010, 9:29 AM
already answered here.
http://www.c-sharpcorner.com/Forums/UploadFile/100691/