示例#1
0
 protected void initializeVar()
 {
     currentUser = new Sportfare.Objects.User();
     // Local Database Connection
     /*dbConnection = new SqlConnection("Data Source=LAPTOP\\SQLEXPRESS;" +
                                    "Initial Catalog=Sportfare;" +
                                    "Integrated Security=SSPI;");*/
     // Web Hosting Service Database Connection
     dbConnection = new SqlConnection(System.Configuration.ConfigurationManager.
             ConnectionStrings["ArvixeConnection"].ConnectionString);
 }
 protected void initializeVar()
 {
     currentUser = new User();
     currentUser.Username = userCookie["username"];
     // Local Database Connection
     /*dbConnection = new SqlConnection("Data Source=LAPTOP\\SQLEXPRESS;" +
                                    "Initial Catalog=Sportfare;" +
                                    "Integrated Security=SSPI;");*/
     // Web Hosting Service Database Connection
     dbConnection = new SqlConnection(System.Configuration.ConfigurationManager.
             ConnectionStrings["ArvixeConnection"].ConnectionString);
 
     lblErrorPasswordChange.Visible = false;
     lblErrorBillingInfo.Visible = false;
     lblReportError.Visible = false;
 }
示例#3
0
        protected void initializeVar()
        {
            currentUser = new User();
            currentUser.Username = userCookie["username"];
            // Local Database Connection
            /*dbConnection = new SqlConnection("Data Source=LAPTOP\\SQLEXPRESS;" +
                                           "Initial Catalog=Sportfare;" +
                                           "Integrated Security=SSPI;");*/
            // Web Hosting Service Database Connection
            dbConnection = new SqlConnection(System.Configuration.ConfigurationManager.
                    ConnectionStrings["ArvixeConnection"].ConnectionString);

            currentPage = userCookie["page"];
            System.Diagnostics.Debug.WriteLine("Current Page Cookie: " + currentPage);
        }