开发者

calling client side event on button click in GridView

开发者 https://www.devze.com 2023-03-05 04:17 出处:网络
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>

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

精彩评论

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