1
Answer

How to run jquery and code behind simultaneously

Prateek Rathi

Prateek Rathi

9y
483
1
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)
0
Reena Sajith

Reena Sajith

NA 88 0 18y
Hi, why r u assigning the string line with first and second line at a time /Read the 1st line of recycle.txt string line = sr.ReadLine(); //Read the 2nd line of recycle.txt line = sr.ReadLine(); //Read the 1st line of objectRef.txt string line2 = sr2.ReadLine(); //Read the 2nd line of objectRef.txt line2 = sr2.ReadLine(); here line,line2 will have the second lines from both the textfiles what is the logic