开发者

Master and content pages with javascript in asp.net 2.0

开发者 https://www.devze.com 2023-03-08 12:13 出处:网络
Hi i\'m 开发者_如何转开发very new to .net programming.I want to run a javascript from a content page containing a button. I\'m able to display a button but dont know how to bind action. Help me in thi

Hi i'm 开发者_如何转开发very new to .net programming.I want to run a javascript from a content page containing a button. I'm able to display a button but dont know how to bind action. Help me in this regard.


I think it should be easy to Attach a JavaScript function to the control by doing the following:

<asp:Button ID="Button1" runat="server" Text="Button" 
    OnClientClick="javascript:JSFunctionName();" />

If you have a specific problem then let me know ?

0

精彩评论

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

关注公众号