VarURLEventTitle =Request.QueryString["ETitle"];
if (!string.IsNullOrEmpty(URLEventTitle))
{
}
OR
if ((URLEventTitle != null) && (URLEventTitle != ""))
{
}
If Request doesn’t work and you get assembly missing error message than add the below system DLL reference:
System.Web.HttpContext.Current.Request.QueryString["ETitle"];
Check if any querystring exists or not:
boolCheckQueryString = false;
CheckQueryString = System.Web.HttpContext.Current.Request.QueryString != null&&System.Web.HttpContext.Current.Request.QueryString.Count>0;
if (CheckQueryString)
{
}