Exemplo n.º 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);
 }
Exemplo n.º 2
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);
 
     lblErrorPasswordChange.Visible = false;
     lblErrorBillingInfo.Visible = false;
     lblReportError.Visible = false;
 }
Exemplo n.º 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);
        }