Click here to Skip to main content
15,792,386 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greeting All ,
I want to get the result of an URL redirection from my ActionResult .
I have a first URL that I should redirect , how can I get the resulted URL
this is my code :

public ActionResult Auth()
    string loginUrl = "" +
             "response_type=code" +
             "&client_id=" + API
             + "&state=DCEEFWF48883sdffef424"
             + "&redirect_uri=" + redirect_uri ;
    //string codeParameter = HttpUtility.ParseQueryString(loginUrl).Get("client_id");
    //string url = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
    return Redirect(loginUrl);


Thanks in advance .
Vi(ky 7-May-14 10:29am    
You want loginurl on Auth view, right?
amiach 7-May-14 10:44am    
when I redirect the loginUrl I should log in and an other URL appear
Vi(ky 7-May-14 10:53am    
what is other url and where to appear?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900