473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datepicker blank text required

I have a date selection field that can be blank OR set to a valid
future date.

I am thinking of using a datepicker field but have one issue with
this.

If I have a check box in the datepicker that can be unticked to
represent no date selected, whatever is the default or last date
selected previously is still displayed in the text display field for
the datepicker, albeit in grayed out format.

The issue I have with this is that our customers will get confused by
this as many will still believe that the date they can see is still
the selected date (and not an empty date field).

Is it possible to change the text colour in this field to white or
transparent, so it looks empty, when the checkbox is unticked, and
vice versa?

I am using an older version of .Net framework (Version 1.1.4322 SP1).
I did find some help regarding a property of ForeColor but this does
not appear to be available as a DatePicker property when I try to code
it.

Cheers

Mark
Jan 31 '08 #1
2 2764
Thanks for the info
Jan 31 '08 #2
On Jan 31, 3:27 am, stainless <Mark.Wingfi... @gmail.comwrote :
I have a date selection field that can be blank OR set to a valid
future date.

I am thinking of using a datepicker field but have one issue with
this.

If I have a check box in the datepicker that can be unticked to
represent no date selected, whatever is the default or last date
selected previously is still displayed in the text display field for
the datepicker, albeit in grayed out format.

The issue I have with this is that our customers will get confused by
this as many will still believe that the date they can see is still
the selected date (and not an empty date field).

Is it possible to change the text colour in this field to white or
transparent, so it looks empty, when the checkbox is unticked, and
vice versa?

I am using an older version of .Net framework (Version 1.1.4322 SP1).
I did find some help regarding a property of ForeColor but this does
not appear to be available as a DatePicker property when I try to code
it.

Cheers

Mark
You can set the CustomFormat property to something like this: "' '" to
display a single space.

Chris
Feb 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1920
by: Always Learning | last post by:
Hi Guys, I have a form field of type datepicker. I want to include it in my get string. like this: Response.Redirect("writetodb.asp?Name=" + Textbox1.Text + "&Telephone=" + TextBox2.Text + "&DateFrom=" + DatePickVar.Text) I keep getting a error when I build stating: Name 'DatePickVar' is not declared. But I have set the id in properties to DatePickVar. The Textbox1 & Textbox2 when passed all works ok. I think it has something
7
17004
by: Malcolm Webb | last post by:
I use the Microsoft Access Calendar (ActiveX) to pass dates into queries and reports. I have recently come across the Microsoft Access DatePicker developed by Brendan Kidwell and I now use this to input dates into various text boxxes on my forms. One form has the capacity for over 20 different dates and using the DatePicker is far easier than typing in individual dates as I used to. Does anyone else use Brendan Kidwell's DatePicker,...
2
3524
by: Ken Loomis | last post by:
Hello: I'm using the validating event on a text boxes to test for valid dates, doubles, etc. The problem is that if the field is not required and a blank value is OK and the user deletes a previous non-blank value, the validaing event keeps putting the non-blank value back in the text box and doesn't allow the blank value. Is this unavoidable in the built-in validating event and do I need just to write my own validation event?
9
5148
by: Alex Shirley | last post by:
Hi there I’m simply trying to check for a blank or empty value in a textbox on my webform. In this instance I do not want to use a requiredfieldvalidator, I want to use a customvalidator (as I have other code within the customvalidator which works). This won’t work (within servervalidate): If txtBox.Text.ToString = "" Then raise exception…..
11
8645
by: Alan Silver | last post by:
Hello, I am using this validator on a textbox, and have discovered that if I set the InitialValue property, then the validator correctly fires if the user does not change the initial value of the textbox, but does NOT fire if the textbox is empty!! I thought the whole point of this validator was to ensure the control being validated had some text. Am I doing something stupid? It looks like I am going to need *two* validators for this,...
7
3206
by: julian.tklim | last post by:
Hi, I need to build an editable Datagrid with add & delete buttons on each row using javascript. DataGrid need not be pre-populated with values. To make the thing complicated, one of the column need to be a date picker field. I know things will be easier with ASPX datagrid.
0
1033
by: Marcpp | last post by:
I need to set a DatePicker to blank value and GetValue() needs to be 0. Thanks by advance.
0
2173
by: jianxin9 | last post by:
Hi everyone, I don't have a lot of experience with ASP and I was hoping someone could help me. I want to use our ASP form along with some javascript code to create a form where our patrons can select which department they will send the form to (we are trying to consolidate forms). This is what I have so far, but when I test the form, I keep getting this error message: Mailing Failed... Error is: FromAddress Property cannot be blank. You...
3
2147
by: aashishn86 | last post by:
var weekend = ; var weekendColor = "#e0e0e0"; var fontface = "Verdana"; var fontsize = 1; var gNow = new Date(); var ggWinCal; isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false; isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
0
8444
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1775
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.