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
What is the purpose of a constructor in c#?
Why we use get and set property in c#?
Is c# an open source language?
Why singleton class is sealed in c#?
What does protected internal access modifier mean?
What is the extension of c# file?
What is a console device?
What is difference between code access and role based security?
Explain copy constructor?
What are the two uses of a ‘using’ statement in c#?
Can constructor be private c#?
How to generate strong name key file or which command is used to generated strong name key file?
What is global asax in c#?
Why References are stored on heap and variables on stack?
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?