开发者

calling client side event on button click in GridView

I need to call a javasript function when a button is clicked 开发者_如何转开发in my GridView. Is it possible to do this, and if so does somebody have an example?


  <asp:TemplateField>
       <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascript:alert('hello');" />
   </asp:TemplateField>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜