Template.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:1k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" %>
  2. <%@ OutputCache Duration="31536000" VaryByParam="None" Location="Client" %>
  3. <%
  4. if(Request.HttpMethod!="POST")
  5. {
  6. string referrer=Request.QueryString["Referrer"];
  7. if(referrer==null)
  8. {
  9. referrer=Convert.ToString(Request.UrlReferrer);
  10. }
  11. //Power By CuteEditor.cn
  12. //该源码下载自www.51aspx.com(51aspx.com)
  13. %>
  14. <html>
  15. <head>
  16. <title>Untitled</title>
  17. <meta name="GENERATOR" content="CuteEditor">
  18. <base target="_blank"  href="<%=referrer%>" />
  19. </head>
  20. <body>
  21. </body>
  22. </html>
  23. <%
  24. }
  25. else
  26. {
  27. %>
  28. <html>
  29. <head runat="server" id="Head1">
  30. <title>Posted Values</title>
  31. <style type="text/css">
  32.  body { font:normal 12px arial;} 
  33.  table { font:normal 12px arial; }
  34. </style>
  35. </head>
  36. <body>
  37. <table border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse;width:400px;">
  38. <tr style="color:white;background-color:steelblue">
  39. <td>Name</td>
  40. <td>Value</td>
  41. </tr>
  42. <%foreach(string key in Request.Form.AllKeys){%>
  43. <tr>
  44. <td><%=HttpUtility.HtmlEncode(key+"")%></td>
  45. <td><pre><%=HttpUtility.HtmlEncode(Request.Form[key]+"")%></pre>
  46. </td>
  47. </tr>
  48. <%}%>
  49. </table>
  50. </body>
  51. </html>
  52. <%
  53. }
  54. %>