help with the time function

hazenvnn

New Member
Hi,<BR>Does anyone have any samples for a time function that would display one image between 8-5pm monday - friday and another image durning all other times. <BR><BR>Thanks,<BR>OliverYeah, use the HtmlImage control like so:<BR><BR><img id="myImage" runat="server"><BR><BR>Now, in your Page_Load event handler you can set the .Src property of myImage to a value based upon the current time. To find out more about getting the current time, check out the DateTime structure. If you have the docs installed on your computer, visit: ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemDateTimeMembersTopic.htm<BR><BR>hth
 
Back
Top