CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Have Calendar show a different date than today

Print topic Send  topic

Author Message
AndyGB4

Posts: 122
Posted: 03/06/2013, 5:27 PM

I need a Calendar that instead of showing today's date, it would show let's say 30 days (or 1 month) from today. The Calendar shows 1 month at a time.

Where can you set what date to default to?

For example:
The Calendar would normally show March 2013
(because we're March 6th)
I need it to show April 2013 because I want to show 30 days from today (April 6th).

Anyone know how to do this?
View profile  Send private message
cvboucher

Posts: 191
Posted: 03/06/2013, 6:26 PM

session_calendar.aspx?SessionCalendarVwDate=2013-04

Substitute the page and control name with yours. When initializing the page you could check for the existence of the parameter and if it doesn't exist, add it and redirect back to the same page.

Craig
View profile  Send private message
AndyGB4

Posts: 122
Posted: 03/06/2013, 6:27 PM

Thanks! it works great!

So basically on a BeforeShow event, I would check to see if the parameter exists. And if it doesn't, I would create it by adding 30 days to Today's date, and refresh the page with the new parameter, right?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.