The HTML is like:
<asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false" OnLoggedIn="LoginUser_LoggedIn"
OnLoginError="LoginUser_LoginError">
</asp:Login>
On LoginUser_LoggedIn event I am setting the destination URL like:
LoginUser.DestinationPageUrl = "~/mycustompage.aspx";
FormsAuthentication.RedirectFromLoginPage(LoginUser.UserName, true);
Here when there is NO ReturnUrl in page URL then it is redirecting to "~/mycustompage.aspx" page but if there is any ReturnUrl specified in the URL then it is redirecting to the ReturnUrl page.
I always want to redirect to "~/mycustompage.aspx" page whether ReturnUrl is there or not. How to achieve this?
Many many thanks in advance!