what if they directly typed the url or used the link from favourites...
there wont be no referrer.
so check for
first things first
if(!Page.IsPostback)
{
ViewState["URLReferrer"] = Request.UrlReferrer;
}
when you want to direct
if(ViewState["URLReferrer"] != null)
{
Response.Redirect(Convert.ToString(ViewState["URLReferrer"]))'
}
else
{
Response.Redirect("~");
// ~ redirect to current application's default page
}
--
Regards,
Hermit Dave
(
http://hdave.blogspot.com)
"Hellp" <dj*****@citgo.com> wrote in message
news:7f************************@posting.google.com ...
Any help appreciated.
Have users on the local area net work post to an Aspx page. The page
process some post data.
I would like to return the user's browser back to the sumbit page. I
have tried
hplReturn.NavigateUrl = Request.UrlReferrer.ToString
but get the following error:
"Object reference not set to an instance of an object"
Any help appreciated
DJ