Prateek Rathi

Prateek Rathi

  • NA
  • 1
  • 813

How to run jquery and code behind simultaneously

Jun 23 2015 3:17 AM
I have written the code for success message after submitting in database.But the code behind is not working and jquery is working.
Here is my code.
$(document).ready(function () {
$("#ContentPlaceHolder1_btnsubmit").live("click", function () {
$("#dialog").dialog({
autoOpen: false,
hide: "puff",
title: "Message",
buttons: {
Close: function () {
$(this).dialog('close');
var url = '../View/Home.aspx';
$(location).attr('href', url);
}
},
modal: true
});
return false;
});
}); 
 

Answers (1)