Default.aspx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%@ Page Language="C#" %>
  2. <%@ Register Namespace="Samples.CS" TagPrefix="sample" Assembly="SystemWebExtensionsAUT" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head id="Head1" runat="server">
  6. <title>ASP.NET AJAX Control Sample</title>
  7. <style type="text/css">
  8. .LowLight
  9. {
  10. background-color:#EEEEEE;
  11. }
  12. .HighLight
  13. {
  14. background-color:Ivory;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <form id="form1" runat="server">
  20. <asp:ScriptManager ID="ScriptManager1" runat="server" />
  21. <div>
  22. <table border="0" cellpadding="2">
  23. <tr>
  24. <td><asp:Label runat="server" ID="Label1" AssociatedControlID="TextBox1">Name</asp:Label></td>
  25. <td><sample:SampleTextBox ID="TextBox1" runat="server" NoHighlightCssClass="LowLight" HighlightCssClass="HighLight" /></td>
  26. </tr>
  27. <tr>
  28. <td><asp:Label runat="server" ID="Label2" AssociatedControlID="TextBox2">Phone</asp:Label></td>
  29. <td><sample:SampleTextBox ID="TextBox2" runat="server" NoHighlightCssClass="LowLight" HighlightCssClass="HighLight" /></td>
  30. </tr>
  31. <tr>
  32. <td><asp:Label runat="server" ID="Label3" AssociatedControlID="TextBox3">E-mail</asp:Label></td>
  33. <td><sample:SampleTextBox ID="TextBox3" runat="server" NoHighlightCssClass="LowLight" HighlightCssClass="HighLight" /></td>
  34. </tr>
  35. </table>
  36. <asp:Button runat="server" ID="Button1" Text="Submit Form" />
  37. </div>
  38. </form>
  39. </body>
  40. </html>