Question: Help on C# pls? hi.\n\ni am designing an e-exam booking system\n\n1. can u give me any clue on how to pop up a calendar and highlight those days red to mean the day is already fully booked, or yellow that it is partially booked and perhaps an indication of no. available for the latter, in the calendar itself.\n\n2. and how to export the data as xml within the application?\n\ntks!

Answer: Hi there\n\nTo work with xml it is probably a good idea to create xml files and store data there. Then you can read the xml document and process the data there. The following links show some examples of working with xml :\n\nhttp://devresource.hp.com/drc/technical_articles/xmlprocess/index.jsp\n\nhttp://www.csharphelp.com/archives/archive199.html\n\nTo highlight days on a calendar do this:\n\nSelectedDatesCollection theDates = Calendar1.SelectedDates;\ntheDates.Clear();\ntheDates.Add(new DateTime(2006,11,21));\ntheDates.Add(new DateTime(2006,11,20));\ntheDates.Add(new DateTime(2006,11,19));\n   \nCalendar1.SelectedDayStyle.BackColor=System.Drawing.Color.Red;\n\nSet what the selected date is on the calendar and then change its back color to what ever you want. More infor here:\n\nhttp://msdn2.microsoft.com/en-us/library/e057ff0d.aspx\n\nTo do a popup window use javascript and call \n\nwindow.open() method.\n\nYou can open up a .aspx page and display your calendar there:\n\nMore about window.open here:\nhttp://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html\n\nHope this helps
This question from the Yahoo Q&A forum is categorized in the topic: Computers & Internet