writing a code how could i get login page url with redirect url?
It is better to configure in the Web.Config, with the default url to "/Account/Login" suppose.
Then whenever you write redirect url as only "/",it would redirect to the login page, as this is the default url.
HOpe you got.
could i get login page url
Where do you need to get this url? Do you want to get this url from the controller itself? You can use UrlHelper to query to routing and get the url for the corresponding control and action
Redirect url is passed as part of query string (assuming you have turned on Forms Authentication in the web.config)
Thanks for your post.
According to your description,
How to get login page url with redirect url
If you want to retrieve the URL of the current login Page in ASP.NET MVC 4 ,you can try this:
string CurrentURL = Request.Url.AbsoluteUri;
And if you want to get the referrer URL in an ASP.NET MVC action,you can try this:
Hope this can be helpful.