62,046
社区成员
发帖
与我相关
我的任务
分享
protected override void Render(HtmlTextWriter writer)
{
writer.AddAttribute(HtmlTextWriterAttribute.Id, this.ClientID);
writer.AddAttribute(HtmlTextWriterAttribute.Name, this.UniqueID);
writer.AddAttribute(HtmlTextWriterAttribute.Value, this.Text);
writer.AddAttribute(HtmlTextWriterAttribute.Type, "button");
string url = this.Page.ClientScript.GetWebResourceUrl(typeof(Controls.XXXX), "Controls.Picture.Test.htm");
writer.AddAttribute("onclick", string.Format("window.showModalDialog('{0}')", url));
writer.RenderBeginTag(HtmlTextWriterTag.Button);
writer.RenderEndTag();
}