Last post Jun 16, 2018 06:55 PM by KathyW
Jun 15, 2018 08:38 PM|rkb100|LINK
I have an asp.net project with two aspx files. One is default.aspx and contains a gridview control that holds personnel records. The gridview contains a button field that opens the second page, person.aspx, which displays detail information for one person
in a tabbed multiview control. In one of the views, I have a button whose click function calls an SQL Server stored procedure. Some times this works fine, but it randomly does not fire and redirects the session back to default.aspx. Can anyone tell me why
this is happening?
Jun 16, 2018 01:30 PM|mgebhard|LINK
Not enough information.
A true redirect is a response sent by the server. You should be able to do a project search for Response.Redirect and find all the places where your code is doing a redirect to default.aspx.
Authentication/Authorization frameworks can also cause a redirect if the user us not authenticated.
Jun 16, 2018 06:55 PM|KathyW|LINK
You haven't provided any information that would let someone answer your question, other than a random guess.
" I have a button whose click function calls an SQL Server stored procedure. Some times this works fine, but it randomly does not fire and redirects the session back to default.aspx."
If you are using authentication, and if default.aspx is the page that people are redirected to when they are not authenticated, and their authentication times out, or is lost some other way, they will be redirected to default.aspx at their next postback.
So, are you using authentication and is default.aspx the page people are redirected to if they are not authenticated? Otherwise, you'll need to provide a lot more information.