Hi!
Here is what I'm doing:
I have Login.aspx with code to do forms authentification and I have this
line at the end:
Response.Redirect(Request.UrlReferrer.ToString());
I have other (non-ASP.NET) pages that post to Login.aspx. THis way I
accomplish asp.net authentification.
Response.Redirect(Request.UrlReferrer.ToString()); work nice because it
takes user back to the place from he/she loggin in.
However, some users reported that they get error during login.
Error states that Reques.URLReferrer is NULL.
How that would happen? Is that a known bug? Is there something with their
environment?
I didn't even think about checking for it, because this form only accessable
when something posts to it.
Also, I have no idea where to redirect user even I check for NULL.
TIA 7 28518
If they open the page directly, without navigating to it from some other
page, the UrlReferer will be null.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message
news:un**************@TK2MSFTNGP10.phx.gbl... Hi!
Here is what I'm doing:
I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString());
I have other (non-ASP.NET) pages that post to Login.aspx. THis way I accomplish asp.net authentification. Response.Redirect(Request.UrlReferrer.ToString()); work nice because it takes user back to the place from he/she loggin in.
However, some users reported that they get error during login. Error states that Reques.URLReferrer is NULL.
How that would happen? Is that a known bug? Is there something with their environment?
I didn't even think about checking for it, because this form only
accessable when something posts to it. Also, I have no idea where to redirect user even I check for NULL.
TIA
Nope.
I understand what you saying but that is not the case here. This page is
always posted to from somewhere.
Form[] stuff is there, but page is not referred.
you can see it at slka.net (forums is phpbb forums - login posted to
login.aspx)
I'm not sure where UrlReferer comes from on background.. If client browser
sends it than I might know why.
Anyone?
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl... If they open the page directly, without navigating to it from some other page, the UrlReferer will be null.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:un**************@TK2MSFTNGP10.phx.gbl... Hi!
Here is what I'm doing:
I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString());
I have other (non-ASP.NET) pages that post to Login.aspx. THis way I accomplish asp.net authentification. Response.Redirect(Request.UrlReferrer.ToString()); work nice because it takes user back to the place from he/she loggin in.
However, some users reported that they get error during login. Error states that Reques.URLReferrer is NULL.
How that would happen? Is that a known bug? Is there something with
their environment?
I didn't even think about checking for it, because this form only accessable when something posts to it. Also, I have no idea where to redirect user even I check for NULL.
TIA
> Nope. I understand what you saying but that is not the case here. This page is
"some users reported that they get error during login"
How do you know that they didn't go to that page directly? Did you ask them,
or assume?
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl... Nope.
I understand what you saying but that is not the case here. This page is always posted to from somewhere. Form[] stuff is there, but page is not referred.
you can see it at slka.net (forums is phpbb forums - login posted to login.aspx)
I'm not sure where UrlReferer comes from on background.. If client browser sends it than I might know why.
Anyone?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:e4**************@TK2MSFTNGP09.phx.gbl... If they open the page directly, without navigating to it from some other page, the UrlReferer will be null.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:un**************@TK2MSFTNGP10.phx.gbl... Hi!
Here is what I'm doing:
I have Login.aspx with code to do forms authentification and I have
this line at the end: Response.Redirect(Request.UrlReferrer.ToString());
I have other (non-ASP.NET) pages that post to Login.aspx. THis way I accomplish asp.net authentification. Response.Redirect(Request.UrlReferrer.ToString()); work nice because
it takes user back to the place from he/she loggin in.
However, some users reported that they get error during login. Error states that Reques.URLReferrer is NULL.
How that would happen? Is that a known bug? Is there something with their environment?
I didn't even think about checking for it, because this form only accessable when something posts to it. Also, I have no idea where to redirect user even I check for NULL.
TIA
Kevin,
Yes, I asked.
I'm not sure how this object populated by ASP.NET
One of this users using Norton Intnet Security,
I suspect it cutting off HTTP headers...
Another proof for me "not assuming" is this link straight to the page: http://www.slka.net/admin/login.aspx
As you see you get an error that data was not posted.
But they get error at the end of page, which means data was posted
(therefore page was referenced)
What do you think?
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl... Nope.
I understand what you saying but that is not the case here. This page is "some users reported that they get error during login"
How do you know that they didn't go to that page directly? Did you ask
them, or assume?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:Ow**************@TK2MSFTNGP10.phx.gbl... Nope.
I understand what you saying but that is not the case here. This page is always posted to from somewhere. Form[] stuff is there, but page is not referred.
you can see it at slka.net (forums is phpbb forums - login posted to login.aspx)
I'm not sure where UrlReferer comes from on background.. If client
browser sends it than I might know why.
Anyone?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:e4**************@TK2MSFTNGP09.phx.gbl... If they open the page directly, without navigating to it from some
other page, the UrlReferer will be null.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:un**************@TK2MSFTNGP10.phx.gbl... > Hi! > > Here is what I'm doing: > > I have Login.aspx with code to do forms authentification and I have this > line at the end: > Response.Redirect(Request.UrlReferrer.ToString()); > > I have other (non-ASP.NET) pages that post to Login.aspx. THis way I > accomplish asp.net authentification. > Response.Redirect(Request.UrlReferrer.ToString()); work nice because it > takes user back to the place from he/she loggin in. > > However, some users reported that they get error during login. > Error states that Reques.URLReferrer is NULL. > > How that would happen? Is that a known bug? Is there something with
their > environment? > > I didn't even think about checking for it, because this form only accessable > when something posts to it. > Also, I have no idea where to redirect user even I check for NULL. > > TIA > >
Hi Ivan,
Forgive me for asking, but I didn't want to be guilty of assuming either!
It definitely sounds like the problem is on the client somewhere. It may be
quite difficult to track down. It would help to know what OS and
browser/version they're using, and whether they are using (as you mentioned)
and antivirus program, or a firewall. However, I don't believe the firewall
would present a problem in this case; otherwise, nothing would come through.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl... Kevin,
Yes, I asked. I'm not sure how this object populated by ASP.NET
One of this users using Norton Intnet Security, I suspect it cutting off HTTP headers...
Another proof for me "not assuming" is this link straight to the page: http://www.slka.net/admin/login.aspx
As you see you get an error that data was not posted.
But they get error at the end of page, which means data was posted (therefore page was referenced)
What do you think?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:Ov**************@TK2MSFTNGP09.phx.gbl... Nope.
I understand what you saying but that is not the case here. This page
is "some users reported that they get error during login"
How do you know that they didn't go to that page directly? Did you ask
them, or assume?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:Ow**************@TK2MSFTNGP10.phx.gbl... Nope.
I understand what you saying but that is not the case here. This page
is always posted to from somewhere. Form[] stuff is there, but page is not referred.
you can see it at slka.net (forums is phpbb forums - login posted to login.aspx)
I'm not sure where UrlReferer comes from on background.. If client browser sends it than I might know why.
Anyone?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:e4**************@TK2MSFTNGP09.phx.gbl... > If they open the page directly, without navigating to it from some other > page, the UrlReferer will be null. > > -- > HTH, > Kevin Spencer > .Net Developer > Microsoft MVP > Big things are made up > of lots of little things. > > "Ivan Demkovitch" <i@a.b> wrote in message > news:un**************@TK2MSFTNGP10.phx.gbl... > > Hi! > > > > Here is what I'm doing: > > > > I have Login.aspx with code to do forms authentification and I
have this > > line at the end: > > Response.Redirect(Request.UrlReferrer.ToString()); > > > > I have other (non-ASP.NET) pages that post to Login.aspx. THis way
I > > accomplish asp.net authentification. > > Response.Redirect(Request.UrlReferrer.ToString()); work nice
because it > > takes user back to the place from he/she loggin in. > > > > However, some users reported that they get error during login. > > Error states that Reques.URLReferrer is NULL. > > > > How that would happen? Is that a known bug? Is there something
with their > > environment? > > > > I didn't even think about checking for it, because this form only > accessable > > when something posts to it. > > Also, I have no idea where to redirect user even I check for NULL. > > > > TIA > > > > > >
Well,
One person had this problem uses "IE 6.0.2800.1106 on a windows ME machine"
And I don't see anything wrong with this.
But he also run Norton Internet security...
May be it cut's off this part only because I post to a DIFFERENT page and
want referrer?
Anyway, I placed patch to redirect to home page...
And WOW!
Another user who had this problem confirmed that he uses NIS.
Funny??
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:u4**************@tk2msftngp13.phx.gbl... Hi Ivan,
Forgive me for asking, but I didn't want to be guilty of assuming either!
It definitely sounds like the problem is on the client somewhere. It may
be quite difficult to track down. It would help to know what OS and browser/version they're using, and whether they are using (as you
mentioned) and antivirus program, or a firewall. However, I don't believe the
firewall would present a problem in this case; otherwise, nothing would come
through. -- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:OG**************@TK2MSFTNGP12.phx.gbl... Kevin,
Yes, I asked. I'm not sure how this object populated by ASP.NET
One of this users using Norton Intnet Security, I suspect it cutting off HTTP headers...
Another proof for me "not assuming" is this link straight to the page: http://www.slka.net/admin/login.aspx
As you see you get an error that data was not posted.
But they get error at the end of page, which means data was posted (therefore page was referenced)
What do you think?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:Ov**************@TK2MSFTNGP09.phx.gbl... > Nope. > > I understand what you saying but that is not the case here. This
page is "some users reported that they get error during login"
How do you know that they didn't go to that page directly? Did you ask them, or assume?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:Ow**************@TK2MSFTNGP10.phx.gbl... > Nope. > > I understand what you saying but that is not the case here. This
page is > always posted to from somewhere. > Form[] stuff is there, but page is not referred. > > you can see it at slka.net (forums is phpbb forums - login posted to > login.aspx) > > I'm not sure where UrlReferer comes from on background.. If client browser > sends it than I might know why. > > Anyone? > > "Kevin Spencer" <ke***@takempis.com> wrote in message > news:e4**************@TK2MSFTNGP09.phx.gbl... > > If they open the page directly, without navigating to it from some other > > page, the UrlReferer will be null. > > > > -- > > HTH, > > Kevin Spencer > > .Net Developer > > Microsoft MVP > > Big things are made up > > of lots of little things. > > > > "Ivan Demkovitch" <i@a.b> wrote in message > > news:un**************@TK2MSFTNGP10.phx.gbl... > > > Hi! > > > > > > Here is what I'm doing: > > > > > > I have Login.aspx with code to do forms authentification and I have this > > > line at the end: > > > Response.Redirect(Request.UrlReferrer.ToString()); > > > > > > I have other (non-ASP.NET) pages that post to Login.aspx. THis
way I > > > accomplish asp.net authentification. > > > Response.Redirect(Request.UrlReferrer.ToString()); work nice because it > > > takes user back to the place from he/she loggin in. > > > > > > However, some users reported that they get error during login. > > > Error states that Reques.URLReferrer is NULL. > > > > > > How that would happen? Is that a known bug? Is there something with > their > > > environment? > > > > > > I didn't even think about checking for it, because this form
only > > accessable > > > when something posts to it. > > > Also, I have no idea where to redirect user even I check for
NULL. > > > > > > TIA > > > > > > > > > > > >
Hi Ivan,
I'm pretty sure you're on the right track. I did a Knowledge Base Search on
ASP.Net and "antivirus" and got a listing of about 6 articles, but there was
something wrong with the Knowledge Base and none of the pages would come up
(I got an error page instead). So I'm going to post this link to the
results, and you see when you can get the articles to come up. Good luck! http://support.microsoft.com/search/...mDays=&InCC=on
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message
news:#2**************@TK2MSFTNGP11.phx.gbl... Well,
One person had this problem uses "IE 6.0.2800.1106 on a windows ME
machine" And I don't see anything wrong with this.
But he also run Norton Internet security...
May be it cut's off this part only because I post to a DIFFERENT page and want referrer?
Anyway, I placed patch to redirect to home page...
And WOW! Another user who had this problem confirmed that he uses NIS.
Funny??
"Kevin Spencer" <ke***@takempis.com> wrote in message news:u4**************@tk2msftngp13.phx.gbl... Hi Ivan,
Forgive me for asking, but I didn't want to be guilty of assuming
either! It definitely sounds like the problem is on the client somewhere. It may
be quite difficult to track down. It would help to know what OS and browser/version they're using, and whether they are using (as you mentioned) and antivirus program, or a firewall. However, I don't believe the firewall would present a problem in this case; otherwise, nothing would come through. -- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Ivan Demkovitch" <i@a.b> wrote in message news:OG**************@TK2MSFTNGP12.phx.gbl... Kevin,
Yes, I asked. I'm not sure how this object populated by ASP.NET
One of this users using Norton Intnet Security, I suspect it cutting off HTTP headers...
Another proof for me "not assuming" is this link straight to the page: http://www.slka.net/admin/login.aspx
As you see you get an error that data was not posted.
But they get error at the end of page, which means data was posted (therefore page was referenced)
What do you think?
"Kevin Spencer" <ke***@takempis.com> wrote in message news:Ov**************@TK2MSFTNGP09.phx.gbl... > > Nope. > > > > I understand what you saying but that is not the case here. This
page is > > "some users reported that they get error during login" > > How do you know that they didn't go to that page directly? Did you
ask them, > or assume? > > -- > HTH, > Kevin Spencer > .Net Developer > Microsoft MVP > Big things are made up > of lots of little things. > > "Ivan Demkovitch" <i@a.b> wrote in message > news:Ow**************@TK2MSFTNGP10.phx.gbl... > > Nope. > > > > I understand what you saying but that is not the case here. This page is > > always posted to from somewhere. > > Form[] stuff is there, but page is not referred. > > > > you can see it at slka.net (forums is phpbb forums - login posted
to > > login.aspx) > > > > I'm not sure where UrlReferer comes from on background.. If client browser > > sends it than I might know why. > > > > Anyone? > > > > "Kevin Spencer" <ke***@takempis.com> wrote in message > > news:e4**************@TK2MSFTNGP09.phx.gbl... > > > If they open the page directly, without navigating to it from
some other > > > page, the UrlReferer will be null. > > > > > > -- > > > HTH, > > > Kevin Spencer > > > .Net Developer > > > Microsoft MVP > > > Big things are made up > > > of lots of little things. > > > > > > "Ivan Demkovitch" <i@a.b> wrote in message > > > news:un**************@TK2MSFTNGP10.phx.gbl... > > > > Hi! > > > > > > > > Here is what I'm doing: > > > > > > > > I have Login.aspx with code to do forms authentification and I have > this > > > > line at the end: > > > > Response.Redirect(Request.UrlReferrer.ToString()); > > > > > > > > I have other (non-ASP.NET) pages that post to Login.aspx. THis way I > > > > accomplish asp.net authentification. > > > > Response.Redirect(Request.UrlReferrer.ToString()); work nice because > it > > > > takes user back to the place from he/she loggin in. > > > > > > > > However, some users reported that they get error during login. > > > > Error states that Reques.URLReferrer is NULL. > > > > > > > > How that would happen? Is that a known bug? Is there something with > > their > > > > environment? > > > > > > > > I didn't even think about checking for it, because this form only > > > accessable > > > > when something posts to it. > > > > Also, I have no idea where to redirect user even I check for NULL. > > > > > > > > TIA > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Harley |
last post by:
i have found a problem when using Request.UrlReferrer. if i call the page
using a javascript function, the referrer is null...
i need to call a page and open it on a specific browser size, with no...
|
by: Oney |
last post by:
I created two iss folder under my aspx project and I redirected each
one of them to same aspx page by IIS that is test.aspx. on the page
load of test.aspx I have to catch where the request come in!...
|
by: Stephane |
last post by:
Hi,
I have installed an image on some html page. This image is sent from an
asp.net page like this:
<img src="image.aspx">
I have a problem with few computers. In my application, I check...
|
by: Jaikanth Sithambaranathan via .NET 247 |
last post by:
The problem is in the result page in which i can scroll throughthe contents of the result set 100 at a time. I call the resultpage from a filter page where i accept filter on results to bedisplayed....
|
by: Aaron Prohaska |
last post by:
Has anyone had any experience with Nortan Antivirus causing problems
when trying to use Request.UrlReferrer? I am seeing in the Nortan
Antivirus log that its blocking my page from loading because...
|
by: saden_paki |
last post by:
I am having this problem, that Request.UrlReferrer comes out to be
Nothing, when a user hits a button on a html page which only have this
button, on this button's onClick javascript event I have...
|
by: ad |
last post by:
I have tree web page A.ASPX, B.ASPX and CheckPW.aspx
There is a button in A.ASPX, the click of that button is redirect to B.ASPX
..
I write a Page_Load event in b.aspx, if the Session is
null...
|
by: deepak.bhardwaj |
last post by:
Hi,
I have implemented the IHttpHandler interface for generating images and
writing them to response stream in binary format. I use an
IHttpHandlerFactory to instantiate that handler. A .aspx...
|
by: John A Grandy |
last post by:
How to determine if a request originated from a link click , or otherwise
( such as pasting the url the browser ).
This would seem to work ...
if (Request.Url.Host == Request.UrlReferrer.Host)...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |