Can somone show me how to set an ip range in C#? For example, I want to check all ip's between 141.211.161.0 and 141.211.161.254. Here's what I have so far:
if (HttpContext.Current.Request.UserHostAddress != "141.211.161.0 - 141.211.161.254")
{
tbUsers.Columns.Add("Email",System.Type.GetType("System.String"));
}
This is being done in Visual Studio 2003.
Thanks,
Steve
This post has been edited by C#Newbie: 27 May 2005 - 02:11 PM

New Topic/Question
Reply



MultiQuote




|