HOW TO: Set the Default Date for the Calendar Control by Using ASP with FrontPage 2002
IN THIS TASK
back to the top
Set the Default Date for the Calendar Control by Using ASPMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. NOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage.
- Open a web in FrontPage on a Microsoft Internet Information Services (IIS) Web server.
- Open a new blank page.
- Insert the Calendar Control. To do this, follow these steps:
- On the Insert menu, click Web Component.
- Under Component type, click Advanced Controls.
- Under Choose a control, click ActiveX Control.
- Click Next.
- Select Calendar Control 10.0.
- Click Finish.
- Switch to HTML view.
- Find the section of code that looks like this:Change the code to look like this:
<param name="Year" value="2000"><param name="Month" value="1"><param name="Day" value="1">
<param name="Year" value="<%=Year(Date())%>"><param name="Month" value="<%=Month(Date())%>"><param name="Day" value="<%=Day(Date())%>">
- Switch to Normal view.
- Save the page with an ASP extension.
back to the top
Article ID: 291200 - Last Review: 10/23/2013 16:56:45 - Revision: 3.0
- kbnosurvey kbarchive kbhowto kbhowtomaster KB291200