You could make your controller action take them as parameters, and the connecting device models its values from the query string:
public ActionResult Index(string skip_api_login , string api_key, int signed_next)
{
...
}
or an event is better, write a view model:
public class MyViewModel
{
public string Skip_api_login { get; set; }
public string Api_key { get; set; }
public int Signed_next { get; set; }
}
so that your index action is taken as a parameter:
public ActionResult Index(MyViewModel model)
{
...
return View(model);
}
, :
@model MyViewModel
...
@Html.DisplayFor(x => x.Skip_api_login)
@Html.DisplayFor(x => x.Api_key)
@Html.DisplayFor(x => x.Signed_next)
, Request:
@Request["skip_api_login"]
, , . , , . , , viewdatas, viewbags, , . ASP.NET MVC : .