Friends

Thursday, May 19, 2011

Prevent direct access of asp.net page


if (Request.UrlReferrer != null)
{
Label1.Text = Request.UrlReferrer.ToString();

}
else
{
Response.Redirect("default.aspx");
}

No comments:

Post a Comment