4
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by majestic0110
0

the most basic one can be this :
get the user name and password from the page then if they match with what you want, set a value to your session variable : Session["IsAuthorized"]=true; then in your restricted pages ask for this session variable and make check if it is set to true, if it is true, allows access, if not, redirect the user to another page saying his credentials dont match with the ones you are expecting.

Serkan ┼×endur

0

unfortunately we don't do the whole coding for people here. Attempt it and show us the code. We will help you from there

0

been working my way through that myself, have a condition loop
if (textbox1.Text == "usernameblah" && textbox2.Text == "Passwordblah"){
//do something
}

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.