When I try to add a value in query string collection, I get an error that collection is readonly. Is there anyway of adding a query string from controller class?
public class HomeController : Controller
{
public ActionResult Index()
{
HttpContext.Request.QueryString.Add("Hello", "World");
return View();
}
public ActionResult About()
{
return View();
}
}