If we try to load the data in database if error occurs that should be
displayed when we click button through javascript?
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.
Kirtan PatelPosted Jan 6, 2010, 2:43 PM
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
//Code to Load Data
}
catch (Exception ex)
{
Page.RegisterClientScriptBlock("", "");
}
}