public string UserHostAddress
{
get
{
if (HttpContext.Current != null &&
HttpContext.Current.Request != null &&
HttpContext.Current.Request.UserHostAddress != null)
return HttpContext.Current.Request.UserHostAddress;
else
return string.Empty;
}
}