Link to home
Start Free TrialLog in
Avatar of kishan66
kishan66Flag for United States of America

asked on

Calendar user control

ASP.net 2.0, C#
Hi,
i want to place a image button which when clicked should show up calendar control and TextBox1 should show up the date selected from calendar. (calendar should not be shown unless button clicked)

In that process,  i know i have to create a UserControl for Calendar ..but due to limited knowledge ..i could not proceed further ...except creating a usercontrol and registering in the webpage needed.

Please help me by ging some sample code...
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

kishan66 u r looking for something which help u to make better calender control try using BDPLite (basic date Picker )  which will give u all that functionalities which u require. Try the example of above link. sample codes and proper documentation are given, regarding how to use it
Avatar of kishan66

ASKER

Hi anurag,

i appreciate the link... gone through that.
All i'm trying to do is  to understand how the custom calendar control interacts with the webpage in which it is registred.

Ex:- when ever a date is selected from the CustomControl ..that selected date has to be displayed in the TextBox of  .aspx page.
like what we have on general webpages like Airline..
The AJAX control toolkit has a calendar control that will do exactly what you want and it includes code samples on how to use it.  You can find it at:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Calendar/Calendar.aspx
ASKER CERTIFIED SOLUTION
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the above links will give u an idea how to create custom control of calendar, adding events and properties.