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
Guest User
Tech Writer
611
127k
Variable value null.
Dec 11 2020 2:57 AM
I have use this code for change password .Bu i have face null value in data.
<script type=
"text/javascript"
>
$(document).ready(
function
() {
debugger
;
$(
'#EditPasswordBtn'
).click(
function
(e) {
e.preventDefault();
var
data = {
"newPassword"
: $(
"#newPassword"
).val(),
"confirmPassword"
: $(
"#confirmPassword"
).val()
};
$.ajax({
url:
'/Login/ChangePassword'
,
type:
"POST"
,
data: JSON.stringify(data),
cache:
false
,
dataType:
"json"
,
contentType:
"application/json"
,
success:
function
(response) {
},
error:
function
(error) {
alert.success(error.Message);
}
});
});
});
</script>
try
{
obj_userMaster.UserPassword = changePassword.NewPassword;
}
Reply
Answers (
1
)
i am using vs 2010 i want to use webapi
Retrieve leads using weebhooks