In MVC5, I have one question,
Iam calling one Action Method(second page) from jquery from First page button click
Everything working fine but atlast i need second action metod view want to load.
could any one help on this.
- $('#report').click(function () {
- debugger
- $.ajax({
- url: '@Url.Action("loadreport", "Report")',
- type: 'GET',
- data: { Mid: $(Txt_Monitor).val() },
- cache: false,
- success: function (data) {
- $("#contact").html(data);
- $header = $('.header');
- $("#div1").show();
- $header1 = $('.header tr td');
- var x = $header.find('td');
- var k = $header1.find('div');
- $('.panel-body').on('scroll', function () { $header.css('top', $(this).scrollTop()); });
-
-
-
-
-
- $('.dt thead tr td div').each(function (e) {
- k.eq(e).width($(this).width());
- });
- $("#spinner").hide();
- },
- error: function () {
-
- $("#spinner").hide();
- }
- });
- });
- });
Second action method
- public ActionResult loadreport(string Mid)
- {
- int TV = RTS.LoadTV(Mid);
- ViewBag.loadreport = RTS.Loadreport(Mid, TV);
-
- return View();
- }
please help on this