Forums - C# Corner

Forum guidelines

Message Box in asp.net/ c#

Oct 11 2010 7:18 AM


i want to show message in messagebox "Data Saved successfully" when click submit botton
i use below code but message box not show plz send me solution for this
protected void btnSaveUpdate_Click(object sender, EventArgs e)
{

objclscp_BlockFngoTargets.Insert(
);
MessageBox(
"Data Saved Successfully !");

}
private void MessageBox(string msg)
{
Label lbl = new Label();
lbl.Text =
"";
Page.Controls.Add(lbl);
}


but above code not give any responce
i also use one more code but same problem
private void MessageBox(string message)
{
if (!string.IsNullOrEmpty(message))
{
Response.Write("");
}
}





Answers (10)

C# Corner Hyderabad Developer Conference

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.