Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everyone,

I want to display a modal pop up on exception in code behind. How can i call a Jquery's dialog() method from the code behind.


C#
try
       {
           SqlCommand cmd = new SqlCommand("Insert into ModalForm values('" + tname.Text + "','" + tmobile.Text + "','" + temail.Text + "')", cnn);
           if (cnn.State != ConnectionState.Open)
               cnn.Open();
           cmd.ExecuteNonQuery();
       }
       catch (Exception ex)
       {
// How to call JQuery popup  from here
       }
Posted
Updated 27-Jun-13 22:52pm
v2

1 solution

 
Share this answer
 
Comments
Rockstar_ 28-Jun-13 5:03am    
Thanks it worked fine..
_Amy 28-Jun-13 5:04am    
Welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900