0
   [Route("user/Report")]
public IHttpActionResult Report()
{
   string url = "https://localhost:xxxx/User/ReportPage.html?Param1=value";
   System.Uri uri = new System.Uri(url);
   return Redirect(uri);
}

i am trying to Get "param1" in ReportPage.html using jquery

Usama Tayyab
  • 121
  • 1
  • 9
  • Possible duplicate of [Get query string parameters with jQuery](https://stackoverflow.com/questions/7731778/get-query-string-parameters-with-jquery) – Adrian Jul 27 '18 at 12:01
  • Sir using Redirect(uri) i can't get querystring because it will not change the browser url – Usama Tayyab Jul 27 '18 at 12:07
  • Then if it's not there you wont get it, simple. Use something like the ViewBag mechanism to save the parameter. – Adrian Jul 27 '18 at 12:09

0 Answers0