TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
prabhu p
NA
181
114.5k
How to redirect to another view
Jan 22 2018 2:41 AM
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()); });
//var wi = new Array();
//$('.dt tr').eq(0).find('td').each(function (e) {
// k.eq(e).width($(this).width() );
// wi.push(k.eq(e).width());
//});
$(
'.dt thead tr td div'
).each(
function
(e) {
k.eq(e).width($(
this
).width());
});
$(
"#spinner"
).hide();
},
error:
function
() {
// handle ajax error
$(
"#spinner"
).hide();
}
});
});
});
Second action method
public
ActionResult loadreport(
string
Mid)
{
int
TV = RTS.LoadTV(Mid);
ViewBag.loadreport = RTS.Loadreport(Mid, TV);
//ViewData["loadrep"] = new SelectList(loadreport, "Rel_Type", "Rel_Type");
return
View();
}
please help on this
Reply
Answers (
2
)
How to fetch data from database for a particular FB account?
How to avoid the Page Refresh when date selected time