Calendar Control

B

Brock

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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top