Hello,
I have made a form where the user can enter the ip address and save it in a notepad the same values are retrieved again.Now I want to see whether the ip address are correct and need to pass it in a method
Plzz need your advice !
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Francis SusaimichaelPosted Dec 19, 2015, 6:54 AM
// Will return the searched IP from the array
string[] arr=Array.FindAll(ipAddresArray, element => element.Contains("192.176.3.3"));
// check the length to find how many times it occurs
if(arr.Length > 1)
{
// do your action
}
Rohit NairPosted Dec 19, 2015, 4:32 AM
Rajeesh MenothPosted Dec 19, 2015, 3:32 AM
Raghav JhavarPosted Dec 19, 2015, 3:27 AM
Francis SusaimichaelPosted Dec 19, 2015, 3:00 AM