In Vb.net i applying CSharp Code.
In run Mode i type all the inputs when i click save button i want to show message Record Inserted Successfully.
I design the screen in vb.net and in code i use Csharp code in vb.net
please help me.
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.
Posted Jun 20, 2012, 8:40 AM
If it is a windows application then use, MessageBox.ShowDialog("Record Inserted Successfully.");
Jignesh TrivediPosted Jun 20, 2012, 6:17 AM
to show message in javascript after save use can use Page.ClientScript.RegisterStartupScript or Page.RegisterClientScriptBlock.
please try...
protected void btnTest_Click(object sender, EventArgs e)
{
// write your save logic
//Page.RegisterClientScriptBlock("mes", "");
Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", "alert('Record Save Successfully.');", true);
}
hope this will help you.