Ok so I haven't tested this , but I notice a few things right away. Your <script> tags point to different paths, jquery seems to be in /js and the forms plugin is in /. This is ok if those are the paths to those files, I just mentioned it as I was not sure if this was intentional or not.
However, the real problem I see is in this: $('#myForm').ajaxForm and <form id="form1" runat="server"> when you do $('#myForm') you are looking for a dom element with an id of 'myForm'. Your forms id is 'form1'. $('#form1').ajaxForm should be what you want. Also, and this is just nitpicking, but your css Link should be inside your head tag, and you should put all your scripts after your closing form tag. This is just to optimize the page loading. Sharique Farooqui wrote: > > > > I have one textbox, one button, one label- all asp.net controls. > What I trying to do : > when user click button text of text box is displayed on label. > > Here is the code > ----------------- > <%@ Page Language="C#" AutoEventWireup="true" > CodeFile="Forms1.aspx.cs" Inherits="Forms" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head runat="server"> > <title>Untitled Page</title> > <link href="jquery-calendar.css" rel="stylesheet" type="text/css" / >> > > <script type="text/javascript" src="js/jquery.js"></script> > > <script type="text/javascript" src="jquery.form.js"></script> > > <script type="text/javascript"> > // wait for the DOM to be loaded > $(document).ready(function() { > // bind 'myForm' and provide a simple callback function > $('#myForm').ajaxForm(function() { > alert("Thank you for your comment!"); > }); > }); > </script> > </head> > <body> > <form id="form1" runat="server"> > <div> > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > <input type="submit" value="Submit Comment" /> > <asp:Button ID="Button1" runat="server" > OnClick="Button1_Click" Text="Button" /> > <div id="submit" style="width: 100px; height: 100px"> > <asp:Label ID="Label1" runat="server" Text="Label"></ > asp:Label> > </div> > </div> > </form> > </body> > </html> > > -- View this message in context: http://www.nabble.com/Forms-with-asp.net-tf4522863s27240.html#a13046759 Sent from the jQuery General Discussion mailing list archive at Nabble.com.