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
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