frames.main.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:1k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" %>
  2. <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  3. <script runat="server">
  4. protected void Page_Load(Object Src, EventArgs E) {
  5. BrowserInfo.Text = Page.Request.UserAgent;
  6. string versionInfo = System.Reflection.Assembly.GetAssembly(typeof(FreeTextBoxControls.FreeTextBox)).FullName;
  7. int start = versionInfo.IndexOf("Version=") + 8;
  8. int end = versionInfo.IndexOf(",", start);
  9. versionInfo = versionInfo.Substring(start, end - start);
  10. VersionInfo.Text = versionInfo;
  11. }
  12. </script>
  13. <html>
  14. <head>
  15. <title>FreeTextBox 3.0</title>
  16. <script>
  17. </script>
  18. </head>
  19. <body>
  20.     <form runat="server">
  21.     
  22.      <p>
  23.      Browser: <asp:Literal id="BrowserInfo" runat="server" /><br>
  24.      Version: <asp:Literal id="VersionInfo" runat="server" /><br>
  25.      </p>    
  26. </form>
  27. </body>
  28. </html>