예제 #1
0
파일: WebPage.cs 프로젝트: mind0n/hive
		public static void RegistScript(WebPage page, string script, string format = null)
		{
			if (!string.IsNullOrEmpty(format))
			{
				script = string.Format(format, script);
			}
			if (!string.IsNullOrEmpty(script))
			{
				page.clientScripts.Add(script);
			}
		}
예제 #2
0
파일: WebPage.cs 프로젝트: mind0n/hive
		public static void AddPageVariable(WebPage page, string name, string content)
		{
			if (content.EndsWith(";"))
			{
				content = content.Left(-1);
			}
			AddPageScript(page, string.Concat("page.", name, " = ", content));
		}