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

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