Default.aspx 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@ Page Language="C#" %>
  2. <%@ Register Namespace="Samples.CS" TagPrefix="sample" Assembly="SystemWebExtensionsAUT" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head runat="server">
  6. <title>ASP.NET AJAX Behavior Sample</title>
  7. <style type="text/css">
  8. .LowLight
  9. {
  10. background-color:#EEEEEE;
  11. }
  12. .HighLight
  13. {
  14. background-color:Ivory;
  15. }
  16. .LowLightButton
  17. {
  18. font-weight:normal;
  19. width:100px;
  20. }
  21. .HighLightButton
  22. {
  23. font-weight:bold;
  24. width:100px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <form id="form1" runat="server">
  30. <asp:ScriptManager ID="ScriptManager1" runat="server" />
  31. <div>
  32. <table border="0" cellpadding="2">
  33. <tr>
  34. <td><asp:Label runat="server" ID="Label1" AssociatedControlID="TextBox1">Name</asp:Label></td>
  35. <td><asp:TextBox ID="TextBox1" runat="server" /></td>
  36. </tr>
  37. <tr>
  38. <td><asp:Label runat="server" ID="Label2" AssociatedControlID="TextBox2">Phone</asp:Label></td>
  39. <td><asp:TextBox ID="TextBox2" runat="server" /></td>
  40. </tr>
  41. <tr>
  42. <td><asp:Label runat="server" ID="Label3" AssociatedControlID="TextBox3">E-mail</asp:Label></td>
  43. <td><asp:TextBox ID="TextBox3" runat="server" /></td>
  44. </tr>
  45. </table>
  46. <asp:Button runat="server" ID="Button1" Text="Submit Form" />
  47. <sample:FocusExtender ID="FocusExtender1" runat="server"
  48. NoHighlightCssClass="LowLight"
  49. HighlightCssClass="HighLight"
  50. TargetControlID="TextBox1" />
  51. <sample:FocusExtender ID="FocusExtender2" runat="server"
  52. NoHighlightCssClass="LowLight"
  53. HighlightCssClass="HighLight"
  54. TargetControlID="TextBox2" />
  55. <sample:FocusExtender ID="FocusExtender3" runat="server"
  56. NoHighlightCssClass="LowLight"
  57. HighlightCssClass="HighLight"
  58. TargetControlID="TextBox3" />
  59. <sample:FocusExtender ID="FocusExtender4" runat="server"
  60. NoHighlightCssClass="LowLightButton"
  61. HighlightCssClass="HighLightButton"
  62. TargetControlID="Button1" />
  63. </div>
  64. </form>
  65. </body>
  66. </html>