C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






How to select Multiple Select Calender Contol in ASP.NET and C#


Posted Date: 25 May 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms

Posted By: Raju.M       Member Level: Gold
Rating:     Points: 15



The following code sample shows how to select multiple dates in Calender Control ASP.NET and C#.



string a = DateTime.Now.ToShortDateString();
string b = DateTime.Now.Add(TimeSpan.FromDays(1)).ToShortDateString();
DateTime c =DateTime.Now.Subtract(TimeSpan.FromDays(-16));
ArrayList arrlist = new ArrayList();
arrlist.Add(a);
arrlist.Add(b);
arrlist.Add(c);
if (arrlist.Count > 0)
{
for (int i = 0; i < arrlist.Count; i++)
{
Calendar1.SelectedDates.Add(Convert.ToDateTime(arrlist[i]));

}
}




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Multiple Selected Calender Control  .  Calender control  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to Dynamically change Background image of table Using ASP.NET
Previous Resource: Zipping and Unzipping Files
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use