| |
winkumpel
Posts: 11
Score: 0
Joined: 5/23/2001
From: Netherlands
Status: offline
|
I am trying to use an ActiveX Calendar control to load a page where the content is based on the date selected by the user. In order to do this I am passing the date value from the calendar to the next page in the following way:- <SCRIPT LANGUAGE=vbscript> Option Explicit Dim caldate, name Sub Calendar1_Click( ) <%caldate=Calendar1.Value%> viewer.document.location.href = "displaypage.asp?name=<%=caldate%>" End Sub </SCRIPT> As soon as the execution gets to the '<%caldate=Calendar1.Value%>' line it stop with the 'Object required' runtime error. I can pass anything else (variables) in this way but not Calendar1.Value I am new to VBscript, ASP and programming in general so may be missing something fairly obvious. Hope someone can help, thanks
|
|