substring in javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdulbasith
    New Member
    • Dec 2006
    • 10

    #1

    substring in javascript

    i need to find check for string that contains 172.16.60 series of ip, if it matches this ip i will do some operation else some other operation.
    can any one tell me how to check whether the ip that iam getting is of this above series..
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    In vb.net...
    Code:
    using System.Web.HttpRequest
    Dim client_ip as string 
    client_ip = Request.UserHostAddress()
    ...will obtain IP and use split() to separate into 4 arrays to compare.

    Hope that this helps.

    Comment

    Working...