Hi All,
What I am trying to do is probably ridiculously easy but I need your help.
For example I am trying to call the click event of button called Button1. Here is my attempt (line 6 being the line of importance):
This doesnt seem to work, can you help.
Cheers, Dave.
What I am trying to do is probably ridiculously easy but I need your help.
For example I am trying to call the click event of button called Button1. Here is my attempt (line 6 being the line of importance):
Code:
1 <html xmlns="http://www.w3.org/1999/xhtml" >
2 <head runat="server">
3 <title>Ajax</title>
4 </head>
5 <body>
6 <script type="text/javascript">Button1.click();</script>
7 <noscript>alert("Disabled");</noscript>
8 <form id="form1" runat="server">
9 <div>
10 <asp:Button ID="Button1" runat="server" Text="Button"/></div>
11 </form>
12 </body>
13 </html>
14
This doesnt seem to work, can you help.
Cheers, Dave.