PC Review


Reply
Thread Tools Rate Thread

Calendar Control Problems

 
 
Mark Sandfox
Guest
Posts: n/a
 
      30th Jan 2007
Below is basically the code direct from "SAMS ASP.NET unleashed". Without
the AutoPostBack="True" i get dump to a page cannot be displayed witht
"javascript:__doPostBack('calCalendar','V2588')" in the address field. With
the AutoPostBack statement nothing happens when you click on a date. Where
am i going wrong?

Thanks in advance for your help.

<Script Runat="server">

Sub Calendar_SelectionChange(s as Object, e as EventArgs)
Dim dtmDate As DateTime

lblDates.Text = "<h2>You selected the following date(s):</h2>"
For Each dtmDate in calCalendar.SelectedDates
lblDates.Text &= "<li>" & dtmDate.ToString( "D" )
Next
End Sub

......

<asp:calendar
ID="calCalendar"
SelectionMode="DayWeekMonth"
SelectWeekText="Week"
SelectMonthText="Month"
AutoPostBack="True"
OnSelectionChanged="Calendar_SelectionChange"
runat="server"/>
<asp:Label
ID="lblDates"
Runat="Server" />


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with calendar control Miguel Microsoft Excel Programming 0 24th Sep 2008 06:14 PM
Calendar Control Problems Brian Matlack Microsoft Excel Misc 2 23rd May 2006 01:08 PM
Problems with calendar control Wim Microsoft Excel Programming 4 2nd May 2006 03:35 PM
Problems with calendar control Don Microsoft Dot NET Framework Forms 0 13th Dec 2004 05:38 PM
Problems with Calendar Control =?Utf-8?B?RXZhbg==?= Microsoft Access Forms 0 7th Aug 2004 04:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.