|
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class UnfriendlyPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
lblDetails.Text = "<h1>Hello from UnfriendlyPage.aspx!</h1><br/><br/>";
}
else
{
lblDetails.Text = "<h1>Post-back to UnfriendlyPage.aspx!</h1><br/><br/>";
}
foreach (string Query in Request.QueryString.Keys)
{
lblDetails.Text += "PARAMETER: " + Query + "=" + Request.QueryString[Query] + "<br/>";
}
lblDetails.Text += "<br/><br/>Request URL: " + Request.RawUrl;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Steve is an MCP and senior software developer for Hidalgo Limited (http://www.hidalgo.co.uk).