string requestedDomain = HttpContext.Current.Request.Url.ToString().ToLower(); if ((requestedDomain.IndexOf("http://yoursite.com") + 1))
This if condition show error : Can not implicity convert type int to bool
if(var)
if(var == value) if ((requestedDomain.IndexOf("http://yoursite.com") + 1) == someintvalue)
string.IndexOf()
if ((requestedDomain.IndexOf("http://yoursite.com") + 1) > 1) { // > 1 is just an example... }
if ((requestedDomain.IndexOf("http://localhost:50555/website15/default.aspx") > -1))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)