DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » General » daypilot and VB.net

daypilot and VB.net

Hi

I have 2 issues - I am new to asp so dont be harsh on me!:

1 Can I use the features of daypilot pro in an asp.net application with VB.NET as opposed to javascript?

2 When I tried it I succeeded in displaying the month control however i cannot get a button to work for previous/next month (something very simple). I have tried adding this to the button event:

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
DayPilotMonth1.StartDate.AddMonths(1)
End Sub

Is this caused by an error that appears on loading the page: "Unexpected call to method or property access". Is this a bug or am I doing something wrong?

Best Regards

Joe

Joe - 5/29/2008 6:19:29 PM
1. All the examples are in C# but you can use VB.NET instead without problems. JavaScript is only required on the client-side. The client-side code is necessary when you want to fine-tune the performance and/or add special behavior. It's usually not necessary when you only want to use the standard features.

2. The following code was working for me:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
Handles Button1.Click
DayPilotMonth1.StartDate = DayPilotMonth1.StartDate.AddMonths(1)
End Sub
Dan Letecky - 5/29/2008 9:06:52 PM

Thanks Dan,

Makes sense to me now -and code works! Still get the "Unexpected........" error on page but the page page loads which is most important.

cheers

Joe

Joe - 5/30/2008 10:04:54 AM
I've tried to create a simple page with just the DayPilotMonth control and a Button. It works fine - I see no "Unexpected call to method or property access" exception. If you post the full stack trace I will try to give you some hint. But so far it seems it has nothing to do with DayPilot.
Dan Letecky - 6/1/2008 9:58:00 PM
Post reply