Hi guys,
I need help in my code. I've been trying to figure out a way to solve this but still i wasn't able to solve it. Here's the scenario i'm creating a login page and i'm trying to restrict users from accessing certain page. They need to login first before they can access the page. Please examin the codes below:
Login.aspx.cs
public partial class Login : System.Web.UI.Page
{
private login userLogin;
protected void Page_Load(object sender, EventArgs e)
{
}
private void logUser()
{
userLogin = new login();
if(userLogin.loginUser(txtusername.Text, txtpassword.Text).Table.Rows.Count == 1)
{
...
Go to the complete details ...