473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to select a date from a calendar to a textbox?

I can't get the selected date in the calendar to my textbox. Here is what I wrote in my Calendar.aspx.cs:

namespace Labb1
{
public partial class Calendar : System.Web.UI.Page
{
private void Page_Load(Object sender, EventArgs e)
{
}
void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.ToString("dd MMMM");
}
}
}

What do I do wrong? ... Please help!
Jan 21 '11 #1
1 4046
Are you looking for something like date control?
Please take help of ajax datecontrol extender or jQuery date control extender...
Jan 24 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: cg_news | last post by:
In short, what I am trying to do is, based on a date, calculate the week of year (as described in ISO 8601), then calculate the first and last date in this week period and return them in the format...
2
by: Si | last post by:
Hi all, I have an events database (Access) that contains 2 fields, StartDate and EndDate. The fields are set as Date/Time long date. The server is UK date format (dd/mm/yyyy) I have a small...
1
by: Reidar | last post by:
In a windows form, is it possible to use a date calendar in a date-field in a datagridview? regards reidarT
3
by: Joey | last post by:
Does anyone know how to set a minimum selectable date in the calendar server control that come with VS2005? I do not want to use validators...I want the days before the selectable period to be...
9
by: samuelberthelot | last post by:
Hi, Here is what I'm trying to achieve: The user enters in the textbox a date. It can be: 02.05.2006 or any other separator... 02052006 020506 any other formats should be forbidden. When...
5
by: tkba | last post by:
Hi All, Please help me to understand if I can add calendar to a date field in forms which will allow users to enter the date. Regards, TK
3
by: mudassir368 | last post by:
How to select text in textbox control, if it is focussed using javascript
1
by: hnpatel | last post by:
hi friends, How to get date in textbox from calender in vb.net? i want to get selected date in textbox onclick of calender. plz help me... thanx in advance...
3
by: Graham Feeley | last post by:
Hi I am using a form to add records and my main hurdle is using 3 unbound textboxes to add the date to a bound textbox. EG: Unbound boxes Tbox0 = 2006......./obviously the year and (tabstop=NO)...
1
by: hassankahrizy | last post by:
hi I want to change Highlight Select Color in TextBox How do it? http://www.freeimagehosting.net/uploads/09f8d9d424.jpg Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.