Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: The calendar isn't working since I implemented it within a Content Page which belongs to Master Page in ASP NET.
sergio.ramos
Newbie

Posts: 1
Registered: 6/3/2008
Location: San Marcos
Member Is Offline
posted on 6/3/2008 at 11:37 PM Reply With Quote
The calendar isn't working since I implemented it within a Content Page which belongs to Master Page in ASP NET.


This is how my content page looks:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="InsertOpenSessions7.aspx.vb" Inherits="InsertOpenSessions7" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script type ="text/javascript" language="JavaScript" src="calendar2.js"></script>

<form id="form1" runat="server">
<div>
<table width ="400px" cellpadding ="3px" cellspacing="3px" style ="font:Arial; font-size :15px">
<tr>
<td>
<asp:TextBox ID="txtenddate" runat="server" text="12/12/2008" ></asp:TextBox>
<a href="javascript:cal2.popup();" ><img src="img/cal.gif" width="22" height="22" style ="border:0" alt="Click Here to Pick up the date"/></a>
<br />
</td> </tr></table>
</div>
</form>

<script type ="text/javascript" language="javascript">

var cal2 = new calendar2(document.getElementById("<%=txtenddate.ClientID%>").value);
cal2.year_scroll = false;
cal2.time_comp = false;
</script>


</asp:Content>
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 6/4/2008 at 06:51 PM Reply With Quote

With the current version you pass the reference to the input element to the calendar's constructor, not its value.
I'm not ASP expert but first thing I'd try would be replacing
var cal2 = new calendar2(document.getElementById("<%=txtenddate.ClientID%>").value);
with
var cal2 = new calendar2(document.getElementById("<%=txtenddate.ClientID%>"));
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004