Literal myLit = new Literal();
myLit = EditTrial.FindControl("litHeader") as Literal;
myLit.Text = Request.RawUrl.Contains("trial/edit") && myLit != null ? "EDIT A TRIAL" : "CREATE A TRIAL";
The bit where i have && myLit != null - VS2010 is saying that will always return true.
I thought if the litHeader control was not found, myLit is set to null?
...
Go to the complete details ...