Suppose in a scenario if we want to display information only
until 4.00 p.m and after that
means after 4.00 p.m if any one tries to access the
information it should give error mesage.
Then how will you write a delegate for this ? Give coding.

Answer Posted / hariharadeep

under page load event
string presenttime
presenttime = hrs & ":" & min

If presenttime > "16:00" Then
info.visibel=false
end if

Is This Answer Correct ?    7 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of a constructor in c#?

454


Why we use get and set property in c#?

506


Is c# an open source language?

539


Why singleton class is sealed in c#?

505


What does protected internal access modifier mean?

543






What is the extension of c# file?

433


What is a console device?

478


What is difference between code access and role based security?

500


Explain copy constructor?

654


What are the two uses of a ‘using’ statement in c#?

472


Can constructor be private c#?

477


How to generate strong name key file or which command is used to generated strong name key file?

510


What is global asax in c#?

514


Why References are stored on heap and variables on stack?

496


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

558