Solved

Calendar user control

Posted on 2011-03-22
5
361 Views
Last Modified: 2012-08-14
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...
0
Comment
Question by:kishan66
  • 3
5 Comments
 
LVL 8

Expert Comment

by:Anurag Agarwal
ID: 35190904
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
0
 

Author Comment

by:kishan66
ID: 35191113
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..
0
 
LVL 7

Expert Comment

by:nbove
ID: 35191143
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
0
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 500 total points
ID: 35196087
kishan66 for making such custom control u need to create properties for that custom control that must be passed to current page in which that control is used. Lil complex which worths nothing when free tools are already available for ur use.

Still for help u can Take help from these links
Creating a Popup Date Picker
Building ASP.NET User and Server Controls

u will also need to create event for that custom control take help from this
Creating a Custom .NET Web Control With Events




0
 
LVL 8

Expert Comment

by:Anurag Agarwal
ID: 35196091
the above links will give u an idea how to create custom control of calendar, adding events and properties.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question