rotemorb 0 Newbie Poster

Hello
I'm quite new to Jquery, so bare with me please.
I've searched google, but I couldn't find an answer to my question.
I'm developing an asp.net 4.0 application, and i wrote a Jquery inside my content page:

$(document).ready(function () {
 $("#Button1").click(function () {
 alert("Hello");
 });
 });

I have a button:

<asp:Button ID="Button1" runat="server" Text="Button" />

From some reason, the alert won't fire when I press the button,,,
any Ideas?

I might add: it's a content page.
Thanks in advance,
Rotem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.