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
Harish Batchu
NA
255
71.3k
error 404 error
Oct 16 2018 1:21 AM
<script>
$(function () {
$("#loginbtn").click(function () {
var obj = {};
alert("hii");
obj.name = $.trim($("#username1").val());
obj.age = $.trim($("#password1").val());
$.ajax({
type: "POST",
url: "Incomeexpenses.aspx/SendParameters",
data: JSON.stringify(obj),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
alert(r.d);
}
});
return false;
});
});
</script>
in cs file i have this method
[WebMethod]
public static void SendParameters(string uname, string password)
{
}
}
it show like error
?
3
jquery.min.js:4
POST
http://localhost:64712/Incomeexpenses.aspx/SendParameters
401 (Unauthorized)
Reply
Answers (
4
)
Operand type clash: int is incompatible with image
get current logged user details in mvc in models