Posts

Showing posts from March, 2015

Page authentication on web pages

Page authentication in web pages Web.config : < system.web >      < compilation debug = " true " targetFramework = " 4.0 " />              < authentication mode = " Forms " >      < forms loginUrl = " Default.aspx " name = " login " timeout = " 120 " ></ forms >      </ authentication >          < authorization >           < deny users = " ? " />      </ authorization >         </ system.web > Login.aspx : protected void btnLogin_Click( object sender, EventArgs e)     {         SqlConnection con = new SqlConnection ( ConfigurationManager .ConnectionStrings[ "dbconnection" ...