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
goutham
NA
8
14.9k
how to validate username and password from database using Linq in c# asp.net
Jul 25 2012 2:33 AM
i already make a " .dbml " file and also Stored Procedure name '' sp_LoginValidation''
i am used like this but it shows some error...........
LoginValidationDataContext check = new LoginValidationDataContext();
var result = from p in check.sp_LoginValidation ()
where p.UserName == LoginUser.UserName && p.Password = LoginUser.Password
select p.FirstOrDefault();
if (result != false)
{
Response.Redirect("UserRegistration.aspx");
}
else
{
Responce.write(" <script> alert ('invalid credentials')<script/>");
}
}
Reply
Answers (
1
)
How to secure the WCF layer. basically only user ids authenticated by the web server should get access to the wcf services.
Add pre install and post install script