mohammad qasim

mohammad qasim

  • NA
  • 408
  • 0

show message box after saving the data into db(sqlserver) in asp.net with c#

Apr 1 2010 3:34 AM
Asp.net C#
how to show the message box after saving the data in db(sqlserver)
??
earlier i was using javascript alert like this
<pre lang="xml">public static void ShowMessage(string strMessage,Page pgno)
{
    Label lbl = new Label();
    lbl.Text = &quot;&lt;script type='text/javascript' language='javascript'&gt;&quot; + Environment.NewLine+ &quot;window.alert('&quot; + strMessage + &quot;');&lt;/script&gt;&quot;;
    pgno.Controls.Add(lbl);
}</pre>
but since putting update panel and asp:updateprogress Its not working.
Is there any ajax message box to use after saving the data.??
I know the "ConfirmButtonExtender"
 but can we use it to show the confirmation message after saving the data into db(sqlserver)
Or better 1
thanks in advance