G
Guest
I am attempting to collect the user's IP address from a Web App. I then need
to verify the address is not an 'internal' user. I need to compare the left 3
characters of the IP address with a constant. I know I have done this with
the left function in VB. I can't seem to locate a similar function in C#. Can
someone assist?
if (Session["UserIP"].ToString() == "22.")
to verify the address is not an 'internal' user. I need to compare the left 3
characters of the IP address with a constant. I know I have done this with
the left function in VB. I can't seem to locate a similar function in C#. Can
someone assist?
if (Session["UserIP"].ToString() == "22.")