Master and content pages with javascript in asp.net 2.0
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 ?
精彩评论