protected void Application_End()
 {
     try
     {
         OCSHelperInterface.GetHelper().End();
     }
     catch
     {
     }
 }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            // 默认情况下对 Entity Framework 使用 LocalDB
            Database.DefaultConnectionFactory = new SqlConnectionFactory(@"Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True");

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            try
            {
                OCSHelperInterface.GetHelper().Start();
            }
            catch { }
        }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     OCSHelperInterface.GetHelper().ReloadCampaginlist();
     gridView1.DataSource = OCSHelperInterface.GetHelper().ALLCampaign;
     gridView1.DataBind();
 }