D
Dave
Hi,
I have a weird problem.
I have a user control, included in a page. This UC does
authentication and tracking.
I developed the code in the page_load event and it works
OK. I then moved it into its own event, CheckUser() and
it stopped working.
I added "sender, e" into the parameters, but it still
don't work.
The CheckUser is being called directly from the parent
page.
It appears the Request object doesn't want to work, and I
don't know why. The first line it stops at uses
Request.UserHostAddress.ToString(). If I skip that, it
fails at the next use of the request object.
Now, if I put CheckUser(sender, e) into the UC page_load
event, then it will work, but it isn't working from the
parent page.
I am obviously missing something. Can anyone help?
Thanks.
Dave Colliver.
http://www.AshfieldFOCUS.com
I have a weird problem.
I have a user control, included in a page. This UC does
authentication and tracking.
I developed the code in the page_load event and it works
OK. I then moved it into its own event, CheckUser() and
it stopped working.
I added "sender, e" into the parameters, but it still
don't work.
The CheckUser is being called directly from the parent
page.
It appears the Request object doesn't want to work, and I
don't know why. The first line it stops at uses
Request.UserHostAddress.ToString(). If I skip that, it
fails at the next use of the request object.
Now, if I put CheckUser(sender, e) into the UC page_load
event, then it will work, but it isn't working from the
parent page.
I am obviously missing something. Can anyone help?
Thanks.
Dave Colliver.
http://www.AshfieldFOCUS.com