Board Logo

Using calendar in .net
Liya - 9/21/2008 at 09:27 AM

Hello, I'm trying to use calendar in .net c# pages.
and it gives me an error : "Error calling the calendar: no target control specified."
I've searched your forum and tried several options by myself. Nothing works.
Please assist me.
The code is as follows:
<form id="form1" runat="server">
<script type="text/javascript" language="JavaScript" src="JScript/calendar/calendar1.js"></script>
<script type="text/javascript" language="javascript">
var cal1 = new calendar1(document.forms[0].elements["<%=txtFrom.ClientID %>"]);
cal1.year_scroll = true;
cal1.time_comp = false;
<asp:TextBox runat="server" ID="txtFrom" />
<a href .... >

vipasane - 1/14/2009 at 08:41 AM

Noticed that atleast with IE 6 scripts must be after form closing tag, otherwise in some cases it will be ran too early and it won't fin the form

Back to forum: