コード例 #1
0
        static public void BuildCachedControl(Control parent, string ctrlID, string guid,
                                              int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency,
                                              BuildMethod buildMethod, string providerName)
        {
            StaticPartialCachingControl pcc = new StaticPartialCachingControl(
                ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, sqlDependency,
                buildMethod, providerName);

            ((IParserAccessor)parent).AddParsedSubObject(pcc);
        }
コード例 #2
0
		public static void BuildCachedControl (Control parent, string ctrlID, string guid,
						       int duration, string varyByParams, string varyByControls, string varyByCustom,
						       string sqlDependency, BuildMethod buildMethod)
		{
			StaticPartialCachingControl NewControl = new StaticPartialCachingControl (ctrlID, guid, duration,
												  varyByParams, varyByControls, varyByCustom,
												  sqlDependency, buildMethod);
			if (parent != null)
				parent.Controls.Add (NewControl);
		}
コード例 #3
0
        public static void BuildCachedControl(Control parent, string ctrlID, string guid,
                                              int duration, string varyByParams, string varyByControls,
                                              string varyByCustom, BuildMethod buildMethod)
        {
            StaticPartialCachingControl NewControl =
                new StaticPartialCachingControl(ctrlID, guid, duration,
                                                varyByParams, varyByControls, varyByCustom,
                                                buildMethod);

            parent.Controls.Add(NewControl);
        }
コード例 #4
0
        public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration,
                                              string varyByParams, string varyByControls, string varyByCustom,
                                              string sqlDependency, BuildMethod buildMethod, string providerName)
        {
            var ctl = new StaticPartialCachingControl(ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom,
                                                      sqlDependency, buildMethod, providerName);

            if (parent != null)
            {
                parent.Controls.Add(ctl);
            }
        }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
     StaticPartialCachingControl control = new StaticPartialCachingControl(ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, sqlDependency, buildMethod, providerName);
     ((IParserAccessor) parent).AddParsedSubObject(control);
 }