I tried using the ASP .Net datepicker control posted on this site, and I got a message: Error on page. Here is the code for my ASPX page:
<%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”Default.aspx.vb” Inherits=”_Default” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<!– STEP TWO: Paste this code into the HEAD of your HTML document –>
<HEAD>
<script language=”JavaScript” src=”date-picker.js”></script>
</HEAD>
<body>
<center>
<form name=calform>
<input type=text name=”datebox” size=15><a href=”javascript:show_calendar(‘calform.datebox’);” onmouseover=”window.status=’Date Picker’;return true;” onmouseout=”window.status=”;return true;”><img src=”show-calendar.gif” width=24 height=22 border=0></a>
</form>
</center>
<p>
<font face=”arial, helvetica” SIZE=”-2″>Free JavaScripts provided<br>
by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font><p>
<!– Script Size: 17.17 KB –>
</body>
</html>
I had to modify some of the HTML tags provided in the example on this site because they were being rejected in ASP .Net. I can’t figure out what the error is, because I can’t debug the script. The page does run, but I get the “Error on page” in the status bar. Are there any other modifications necessary in ASP .Net that I’m not aware of?