ASP.NET Page /Admin/Results.aspx.cs (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 System.Net;  
13: using QuiznetOnline.Data;  
14:   
15:   
16: public partial class Admin_Results : System.Web.UI.Page  
17: {  
18:     protected void Page_Load(object sender, EventArgs e)  
19:     {  
20:         DataFunctions dataFunctions = DataFunctions.GetInstance();  
21:         SqlDataSource1.ConnectionString = dataFunctions.GetConnectionString();  
22:         if (Session["Validated"] == null || (bool)Session["Validated"] == false)  
23:             Response.Redirect("Default.aspx");  
24:   
25:         //this.SqlDataSource1.ConnectionString = ConnectionObj.GetConnection().ConnectionString;  
26:     }  
27: }  

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