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
SandipKumar Mohanty
NA
4
683
login page in angularjs with wcf method call.
Apr 23 2016 11:02 PM
I have a Login page in asp.net. In loginbutton_click calling a method which is inside wcf service , that service method returning 1 or 0 . I am assigning that in to variable that is result.If result is 1 that is redirect to registration.aspx else it will show error message "Invalid Login".like above my login page is working.that thing need in angulrjs. My requirement is login page in angularjs with that wcf method call.
Find below my button click event code
------------------------------------------------
btnlogin_click()
{
int result=0;
if(txtuserid.text !=string.Empty && txtpassword.text !=string.Empty)
{
IServiceProvider s= new IServiceProvider();
result=s.getlogindetails(txtuserid.text.trim(),txtpassword.text.trim());
if(result==1)
{
session["userid"]=txtuserid.text.trim();
response.redirect("registration.aspx");
}
else{
lblmessagr.text="invalid ligin"
}
}
}
}
Reply
Answers (
2
)
How To remove or Hide controller and action from URL in MVC4
how to use add wishlist option in asp.net