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
Abhilash J A
502
2.4k
597.2k
error - The resource cannot be found. MVC
Mar 16 2017 6:30 AM
Hi,
I am working on MVC 5, there is Controller:
LoginUser
and ActionName:
Login
. But showing error. 'The resource cannot be found.' How can I solve this?
Note: But when I hit break point to the Login method, then It hitting there. But suddenly the error message showing.
Please help me...
Error,
This is the ajax call to controller action method. I using usermange.js file for implimenting java script.
$(
'#frmSubmitLoginUser'
).submit(
function
() {
debugger
;
if
($(
this
).valid()) {
var
formData =
new
FormData(
this
);
var
options = {
"backdrop"
:
"static"
, keyboard:
true
};
$.ajax({
url:
"/LoginUser/Login"
,
type:
"POST"
,
data: $(
'form'
).serialize(),
success:
function
(result) {
$(
'#alertMsgModalContent'
).html(result);
$(
'#alertMsgModal'
).modal(options);
$(
'#alertMsgModal'
).modal(
'show'
);
},
error:
function
(result) {
}
});
e.preventDefault();
$(
"#closbtn"
).click(
function
() {
$(
'#alertMsgModal'
).modal(
'hide'
);
});
}
return
false
;
});
View,
@using (Html.BeginForm(null, null, FormMethod.Post,new {
id
=
"frmSubmitLoginUser"
}))
{
/*Here, html another controls*/
<
input
type
=
"submit"
value
=
"Submit"
class
=
"btn reg-btn btn-block"
>
}
Controller,
[HttpPost]
public
ActionResult Login(PartnerVM partnerVM)
{
/*Save action*/
return
PartialView(
"~/views/UserRegister/_savedSuccessMessageBox.cshtml"
);
}
Reply
Answers (
9
)
select value of drop-down should show in my Edit dropdown
How to bind JSON to webform controls