Posted on: 7/11/2014 11:06:12 PM | Views : 434

Hi 
I have a like button this button in case if the session has value the label will gives a message and if not the ModalPopupExtender should appear but the case is whatever if the session has value or not this ModalPopupExtender appear and also the code is not processing thats mean no new record added in the table

protected void likebtn_Click(object sender, ImageClickEventArgs e) { // Ensure you have a session if (Session["UsrNme"] != null) { adsdetloginreqpopup.Hide(); // Store your username var user = Session["UsrNme"]; // Build your Connection using (var likeCon = new SqlConnection(cs)) { // Open your connection likeCon.Open(); // Build your query var likeSta ...

Go to the complete details ...