PC Review


Reply
Thread Tools Rate Thread

Calendar App not working on internet

 
 
Mark Sandfox
Guest
Posts: n/a
 
      6th Feb 2007
I created a simple calendar test app (webform1.aspx) using Visual Studios,
which works perfectly in local debug mode, but has no functionality when
posted to the website. I.e. the label fills with date information on
calendar1_selctionchanged only when run locally, but not when posted to the
website. I must be missing something very simple here. In the past I have
hand coded all my asp.net code. Page code snippet below.



Thank you in advance for your help.



Public Class WebForm1

Inherits System.Web.UI.Page

Protected WithEvents lResults As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

If Calendar1.SelectedDates.Count = 1 Then

lResults.Text = Calendar1.SelectedDate

ElseIf Calendar1.SelectedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.SelectedDate & " - " &
DateAdd(DateInterval.Day, 6, Calendar1.SelectedDate)

Else

lResults.Text = Format(Calendar1.SelectedDate, "MMMM") & " has " &
Calendar1.SelectedDates.Count.ToString & " days."

End If

End Sub

End Class


 
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
Remove internet calendar from outlook calendar pane PhD05 Microsoft Outlook Calendar 1 5th Dec 2009 02:15 AM
Sync Exchange Calendar with PST calendar over Internet John Microsoft Outlook Discussion 13 1st Dec 2006 12:39 AM
Java isn't working right, but all internet tests tell me it's working perfectly easytoremember123@email.com Windows XP Internet Explorer 1 11th Jun 2005 10:08 PM
internet explorer working slowly locally and on internet Phillip Newbury Windows XP Internet Explorer 0 30th Mar 2004 03:11 PM
Local network working, Internet not working on one machine Richard Vegsund Windows XP Networking 1 2nd Aug 2003 07:30 AM


Features
 

Advertising
 

Newsgroups
 


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