tail_postback.aspx 445 B

12345678910111213141516171819202122232425
  1. <%@ Page Language="C#" AutoEventWireup="True" %>
  2. <html>
  3. <head>
  4. <script runat="server">
  5. void Page_Load (object o, EventArgs e)
  6. {
  7. DataBind ();
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <p>
  13. Instructions: put a tail (ie ...aspx/foo) in the
  14. location bar. Then click the button. You will get a different
  15. path.
  16. </p>
  17. <form runat="server">
  18. <asp:button runat="server" Text="Click Me!"/>
  19. <br>
  20. PathInfo: <%# Request.PathInfo %>
  21. </form>
  22. </body>
  23. </html>