<button type="submit" name="upload" id="upload" onclick="" runat="server">upload</button>
如何绑定后台写的onclick事件?
前台js:
function foo() { alert("hello");}
后台C#:
upload.Attributes.Add("onclick", "foo()");
onclick="处理事件的方法名" runat="server"