Question 1: Can I redirect to the another file name?
Yes, by changing the default page settings in/under IIS
Question 2: But after I do the login and success, it will pop to the default.aspx. Can I redirect to the webpage where i original requested.
I am not sure what you are asking here? What page you originally requested?
Do you mean one that was entered into the address bar, but forced you to the Login page?? Yup, sure can once you have logged in the session is started, keep the browser open and on the default.aspx page and enter or select the address in the browser address bar that you were trying to get to...and voila!
Hope this helps?
Hi All,
I now creating the login page. So I have using the
ForumsAuthentication.RedirectFromLoginPage(UserName.Text,False)So by default it will redirect to the default.aspx So this part is ok.Can I redirect to the another file name?
Another problem is, I will do the checking wheter the user is login. If user are not log in it will redirect to login.aspx I wrote code like:
If Session("Logged_IN").Equals("No") Then Response.Redirect("login.aspx") End IfBut after I do the login and success, it will pop to the default.aspx. Can I redirect to the webpage where i original requested. I search from the web that ForumsAuthentication.RedirectFromLoginPage can redirect to caller webpage, but how? I feel blur!
Thanks Best Regards John Ang