If we try to load the data in database if error occurs that should be
displayed when we click button through javascript?
Loading data
1 Answer
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 attend4days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Jan 6, 2010, 9:43 AM EST
protectedvoid Button1_Click(object sender, EventArgs e)
{
try
{
//Code to Load Data
}
catch (Exception ex)
{
Page.RegisterClientScriptBlock("", "");
}
}