I have an ITS soap solution and I was wondering if I should use html.encode for the query string.
[ValidateInput(false)]
public ActionResult Sample()
{
string testLogin = Request.QueryString["testLogin"];
if (string.Equals(testLogin, "true"))
{
return View("TestLoginView");
}
}
I have given the validateinput as false, does my page becomes more secure if I make it as true?
In place of Request.QueryString["testLogin"] should I use html.encode(Request.QueryString["testLogin"]) to make it more secure?