Author: Manisha Agarwal | Posted on: 6/5/2009 5:18:10 AM | Views : 439

 Hi
I read that for intranet based projects we have to use windows authentication and for internet based projects we have to use forms based authentication.
Im doing an internet based project so i want to use forms based authentication.
First i created Login page and wrote the following code in Login.aspx for button click event:


SqlConnection conn =new SqlConnection("************************8;");conn.Open();
SqlCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM web WHERE username=@username " +
Go to the complete details ...