C#中增加htmlbutton
我在C#中在Table中增加Htmlbutton控件,
HtmlTableCell c=new HtmlTableCell();
HtmlButton lb=new HtmlButton();
lb.InnerText ="Edit";
//在
lb.ServerClick +=new EventHandler(lb_Click);
我可不可在JS中定事件???
我如何用JS文件中的HtmlButton的事件???
[解决办法]
HtmlTableCell c=new HtmlTableCell();
HtmlButton lb=new HtmlButton();
lb.InnerText ="Edit";
lb.Attributes.Add("onclick","you js code or function")
[解决办法]
http://www.weste.net/html/200404/20040429QBI094905.html
http://blog.csdn.net/liushengpiaoxu/archive/2007/09/05/1772695.aspx
http://www.cnblogs.com/oec2003/archive/2007/11/23/969638.html
http://dsdm.bokee.com/5330238.html
[解决办法]
HtmlTableCell c=new HtmlTableCell();
HtmlButton lb=new HtmlButton();
lb.InnerText ="Edit";
lb.Attributes.Add("onclick","所需调用JS中的代码")