Click here to Skip to main content
16,016,759 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 :

C#
public ActionResult Auth()
{
    string loginUrl = "https://www.linkedin.com/uas/oauth2/authorization?" +
             "response_type=code" +
             "&client_id=" + API
             + "&state=DCEEFWF48883sdffef424"
             + "&redirect_uri=" + redirect_uri ;
    Redirect(loginUrl);
    //string codeParameter = HttpUtility.ParseQueryString(loginUrl).Get("client_id");
    //string url = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
    return Redirect(loginUrl);

}

Thanks in advance .
Posted
Comments
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