コード例 #1
0
 private void ScriptRegister(string key, string resoruceName)
 {
     if (this.Page.ClientScript.IsClientScriptBlockRegistered(key) == false)
     {
         string script = string.Format(@"<script type=""text/javascript"" src=""{0}""></script>",
                                       AssemblyResourceHandler.GetWebResourceUrl(typeof(TextBox),
                                                                                 string.Format("SimpleFlow.WebControlLibrary.Resources.Javascript.{0}", resoruceName), string.Empty));
         this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), key, script);
     }
 }
コード例 #2
0
 /// <summary>
 /// Evaluator
 /// </summary>
 /// <param name="m">Match</param>
 /// <returns>Evaluator</returns>
 public String Evaluator(Match match)
 {
     return(AssemblyResourceHandler.CreateWebResourceUrl(this.m_AssemblyName
                                                         , match.Groups["fileName"].Value, this.m_TimeStamp, string.Empty));
 }