Profile.aspx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ Page Language="C#" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <%@ Register TagPrefix="Samples"
  4. TagName="AjaxProfile" Src="LoginProfileControl.ascx" %>
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>Profile User Control</title>
  8. <style type="text/css">
  9. body { font: 11pt Trebuchet MS;
  10. font-color: #000000;
  11. padding-top: 72px;
  12. text-align: center }
  13. .text { font: 8pt Trebuchet MS }
  14. </style>
  15. <script language="C#" runat="server">
  16. // Add the ScriptManager to the page programmatically.
  17. protected void Page_PreInit(object sender, EventArgs e)
  18. {
  19. ScriptManager sm = ScriptManager.GetCurrent(this.Page);
  20. if (sm == null)
  21. {
  22. sm = new ScriptManager();
  23. sm.ID = "ScriptManagerId";
  24. form1.Controls.Add(sm);
  25. }
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <h2>Profile User Control</h2>
  31. <form id="form1" runat="server">
  32. <div>
  33. <Samples:AjaxProfile ID="ProfileId" runat="server" />
  34. </div>
  35. </form>
  36. <span style="font-weight:normal; font-size:medium; color:Black">
  37. Please, use one of the following [username, password]
  38. combinations:<br />
  39. [user1, u$er1] <br/>
  40. [user2, u$er2] <br/>
  41. [user3, u$er3]
  42. </span>
  43. </body>
  44. </html>