Surya sasidhar
Surya sasidhar

Reputation: 30313

Grid view row command in asp.net?

In web application, in asp.net i am using one grid view, in that i have one link button, in row command event i am binding the url to that link, when i am clicking on that it is logging out, it is coming to login page. In row command i am writing the code like this

Response.Redirect(s, false);

where s containt the url like abc/abc_approval/xyz.aspx. it is giving particularly that url only remaing urls redirecting to their destinations. when it comes to login page the url like this

Login.aspx?ReturnUrl=%2fabc%2fabc_Approval%2fxyz.aspx

help me please.

Upvotes: 0

Views: 272

Answers (1)

Adil
Adil

Reputation: 148140

This does not seem the problem of redirect, you may have authentication failed on abc/abc_approval/xyz.aspx or any error could cause the redirect to login page. In web.config check the customErrors tag, Login page might be the default for unhandled errors. Put debugger on the suspected page to see if any error occurs.

Upvotes: 1

Related Questions