string minute = "15";
        string minute2 = "20";
        string minute3 = "27";
        string minute4 = "02";
        TimeSpan first = TimeSpan.Parse(minute);
        TimeSpan second = TimeSpan.Parse(minute2);
        TimeSpan Third = TimeSpan.Parse(minute3);
        TimeSpan fourth = TimeSpan.Parse(minute4);
        TimeSpan now = DateTime.Now.TimeOfDay;

        if (now == first|| now == second || now == Third || now == fourth)
        {
            //matched
        }
        else
        {

        }
    }

      is it correct what i have done in asp.net   because i am not geeting proper output
Re: regarding comparing of time in asp.net in current time 80 80

What output are you expecting? As of right now the code outputs nothing, but the methods are in use fine... Have a look at this.
https://docs.microsoft.com/en-us/dotnet/api/system.timespan.parse?view=netframework-4.7.2

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.