Hi All,
i've two pages(Login.aspx and User.aspx).I'll try to explain what is happening in application server(i.e,Asp.Net development server) then i will come to IIS.
In Application server,
While start browsing Login.aspx page will appear(since Login.aspx is start up page).then i'll enter login details that will direct to the User.aspx page,this is fine.If i'm trying to browse User.aspx,that should redirect to Login.aspx only.for that i've used following code:
if (DTO.dtoLogin.temp == null)
{
Response.Redirect("Login.aspx");
}
DTO.dtoLogin.temp = null;
i'm happy to say that its working fine.
In IIS,
First time if i'm trying to open that User.aspx page,it will redirect to the Login.aspx page,this is fine.If i entered login details immediatelly direct to User.aspx page if details correct.After that,i'll try to open User.aspx page (by entering somethinglike http://198.162.0.131/demo/User.aspx),its openning,actually this should not happen instead it should redirect to Login.aspx page.
i hope you are getting this and please reply with an example.