Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Calendar Extender - Error in ScriptResource.axd line 1162

$
0
0
Just been doing some really basic testing with the new Calendar Extender and I'm getting an error whenever I set the text property of the 
textbox that is being extended. I've got the following code for my Page_Load event :

ProtectedSub Page_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load

Me.TextBox1.Text = "1/1/2007"

EndSub 
and the aspx page is just :

<%

@PageLanguage="VB"AutoEventWireup="false"CodeFile="testcalendar.aspx.vb"Inherits="testcalendar" %>

<%

@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %>

<!

DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

htmlxmlns="http://www.w3.org/1999/xhtml">

<

headrunat="server">

<title>Untitled Page</title>

</

head>

<

body>

<formid="form1"runat="server">

<div>

<asp:ScriptManagerID="ScriptManager1"runat="server">

</asp:ScriptManager>

 

</div>

<asp:TextBoxID="TextBox1"runat="server"></asp:TextBox>

<cc1:calendarextenderid="CalendarExtender1"runat="server"targetcontrolid="TextBox1"></cc1:calendarextender>

</form>

</

body>

</

html>

 

The error is on the following line in ScriptResource.axd. 

 value = Date.parseLocale(text, this.get_format());
  If I don't set the text in the server side code all works fine but I'm going to want to do this.

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>