Computing.Net > Forums > Web Development > Login Redirect!!!

Login Redirect!!!

Reply to Message Icon

Original Message
Name: Jay_0901
Date: April 15, 2005 at 09:04:46 Pacific
Subject: Login Redirect!!!
OS: Win XP SP 2
CPU/Ram: P4 3.0 Ghz/1 GB
Comment:

I have a login paging that prompts the user for login and password. Right now I am redirecting the user after authentication to a default page. I want to code it in a way that it will pick the corresponding pages listed in my database.

if ( args.Value == dataReader.GetString( 1 ) )
{FormsAuthentication.SetAuthCookie(
Request.Form[ "TextBox1" ], false );
Session.Add("name", Request.Form[ "TextBox1" ].ToString() );
Response.Redirect( "default.aspx" );}
else
args.IsValid = false;

As you can see (Response.Redirect( "default.aspx" )) it direting to the default page...now instead of this I want to to pick the page listed in a column of my database that corresponds to the particular user...I would really appreciate any help...Thanks


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Login Redirect!!!

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software