ASP.NET Page /Admin/QuestionAnswerEnquiry.aspx.cs (C#)
1: using System;  
2: using System.Web.UI.WebControls;  
3: using QuiznetOnline.Web.UI.BusinessClasses;  
4:   
5: namespace QuiznetOnline.Web.UI.Admin  
6: {  
7:     public partial class QuestionAnswerEnquiry : System.Web.UI.Page  
8:     {  
9:         protected void Page_Load(object sender, EventArgs e)  
10:         {  
11:             if ((Session["Validated"] == null || (bool)Session["Validated"] == false) && FormOperations.IsWebServerLocalHost(Request.Url.ToString()) == false)  
12:                 Response.Redirect("Default.aspx");  
13:   
14:             //this.SqlDataSource1.ConnectionString = ConnectionObj.GetConnection().ConnectionString;  
15:   
16:         }  
17:     }  
18: }  

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