Calendar Control

Brock

Usenet Archive
Joined
Jun 11, 2001
Messages
55
Reaction score
0
I am developing a .aspx page that will serve as a date-range picker to pass a date-range into another .aspx that has a CrystalReportsViewer. So far I have two textboxes: txtBeginDate & txtEndDate and a Calendar control: Calendar1, and a btnOK.... can anyone get me started on the base logic? I want upon opening the .aspx for the txtBeginDate to default to today's date and the txtEndDate to default to 30 days from today's date. So I'm thinking, and this is just a start:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'today's date txtBeginDate = 'today's date + 30 txtEndDate = End Sub

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click Server.Transfer("CrystalReportForm.aspx") 'need here to pass the values of the calendar form to the CrystalReportsForm End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged 'txtBeginDate = 'txtEndDate = End Sub

Thanks for any help! Brock
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top