If in my controller:
public ActionResult Index()
{
//no code implied
return View;
}
Then in the view that is returned:
<%if(ViewData["SomeString"].ToString() != "True") {%> show this <%}%>
I will get an error at runtime because of an object reference having no object.
However inside of a page where I do:
<%if(Request.QueryString["Something"].ToString() != "True") {%> show this <%}%>
Update: I actually do get the error.
Edit: Looks like they act the same after all.