Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have loaded sample.cshtml page using jquery/ajax. And my issue is have to add dynamic data into the sample.cshtml. when i was using another jquery post request not working help me please.
my code below:

C#
$("#detail").click(function () {

                  $("#main1").load('/sample/');

                  

                   });



sample.cshtml also need to load the dynamic data...

when i was using another method inside it and call another post request not working...
like
C#
$("#detail").click(function () {

                  $("#main1").load('/sample/');

                  samplepost();

                   });
Posted

1 solution

$("#detail").click(function () {
jquery.ajax(function(){
url: <url>,
success: function(data) {
//assuming main1 is div
$("#main1").html(data);
}
}) ;
});
 
Share this answer
 

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