/    Sign up×
Community /Pin to ProfileBookmark

Question on datepicker control used in ASP .Net

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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>

<html xmlns=”http://www.w3.org/1999/xhtml” >
<!– 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?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@BKaporchauthorDec 22.2005 — I'm sorry...found the error myself...needed to rename the text box on the ASP .net form.
×

Success!

Help @BKaporch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...