1, I have created a simple asp.net app using vs 2010. 2, Two ages are there LOgin.aspx and Personaldetails.aspx 3, In webconfig I put like this

<system.web> <compilation debug="true" targetFramework="4.0" /> <authentication mode="Forms"> <forms loginUrl="Login.aspx" timeout="2880" defaultUrl="PersonalDetails.aspx" /> </authentication> <authorization> <deny users="?" /> </authorization>
4, set the startpage as Personaldetails.aspx
5, I have login control in login .aspx inside that I put like this
if (Login1.UserName == "user" && Login1.Password == "pwd") { FormsAuthentication.RedirectFromLoginPage("user", false); }

Go to the complete details ...