Code Behind Page Page /Admin/User.aspx.cs (C#)
Used by Page /Admin/User.aspx (C#)
1: using System;  
2: using System.Data;  
3: using System.Configuration;  
4: using System.Collections;  
5: using System.Web;  
6: using System.Web.Security;  
7: using System.Web.UI;  
8: using System.Web.UI.WebControls;  
9: using System.Web.UI.WebControls.WebParts;  
10: using System.Web.UI.HtmlControls;  
11: using System.Data.SqlClient;  
12: using QuiznetOnline.Data;  
13:   
14:   
15: public partial class Admin_User : System.Web.UI.Page  
16: {  
17:     protected void Page_Load(object sender, EventArgs e)  
18:     {  
19:         DataFunctions dataFunctions = DataFunctions.GetInstance();  
20:         SqlDataSource1.ConnectionString = dataFunctions.GetConnectionString();  
21:         if (Session["Validated"] == null || (bool)Session["Validated"] == false)  
22:             Response.Redirect("Default.aspx");  
23:   
24:         //this.SqlDataSource1.ConnectionString = ConnectionObj.GetConnection().ConnectionString;  
25:   
26:     }  
27: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.