コード例 #1
0
 /// <summary>
 /// Gets the statement (starting with javascript:) that can startup this control.
 /// </summary>
 public string GetOnClickClientHyperlink()
 {
     return("javascript:" + PreviewImage.GetOnClickClientScript(Page, this.FullSizedImageUrl, this.LoadingAnimation, this.Description, this.TransparencyLevel, this.TransparencyColor, HideObjects));
     //Return "javascript:PreviewImage_Open(null, '" & ResolveClientUrl(Me.FullSizedImageUrl) & "', " & GetDesc() & ", " & GetLoadImg(Page, LoadingAnimation) & ", " & GetClose() & ", " & (100 - TransparencyLevel) & ", '" & ColorTranslator.ToHtml(TransparencyColor) & "')"
 }
コード例 #2
0
 protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer)
 {
     base.AddAttributesToRender(writer);
     writer.AddAttribute("onclick", PreviewImage.GetOnClickClientScript(Page, this.FullSizedImageUrl, this.LoadingAnimation, this.Description, this.TransparencyLevel, this.TransparencyColor, HideObjects));
     writer.AddStyleAttribute("cursor", "pointer");
 }