Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > date picker

Reply
Thread Tools

date picker

 
 
ven
Guest
Posts: n/a
 
      12-29-2004
Hello,

I found a source of datepicker who opens a new window using java to select a
date, but i saw a datepicker who doesn`t open a new window (dynamically
opened on click), and i have a question maybe there is a tutorial how to
write that datepicker?

Ven


 
Reply With Quote
 
 
 
 
matt.torline@bissell.com
Guest
Posts: n/a
 
      12-29-2004
Ven,
You can create a web control using the calendar control, textbox
and imagebutton. When the use selects the image button use the click
event to set the property of the calendar control to
calendar.visible=true, and after they select the date use the
calendar.SelectionChanged to hide the calendar and set the value to the
textbox. Make sure to make a public property on the control to gather
the date selected. Hope this helps.
Matt

 
Reply With Quote
 
 
 
 
Peter Blum
Guest
Posts: n/a
 
      12-29-2004
As the author of one of the most popular date pickers, Peter's Date Package
(http://www.peterblum.com/datecontrols/home.aspx), I have some knowledge
here. Naturally, I'd recommend that you purchase one of the third party
controls available. It will save you a lot of time and deliver code that has
been tested in the field. In my product, it works on many browsers and
includes validators, time entry and more. (19 controls total for $50 USD)

Here is the general idea. You cannot use the ASP.NET Calendar control
because each time you click on a date or next/prev month, it submits the
page. When you build a popup calendar inside the same window, you show an
absolutely positioned <DIV> that contains the calendar. If it submits the
page, it effectively closes the calendar. To solve this, you need a
javascript-based calendar that does not submit on each click. It is a big
task to write one. Its more complicated when you need to support more than
just Internet Explorer because Mozilla, FireFox, Netscape 7, Opera 7, Safari
and the rest have slight differences.

--- Peter Blum
www.PeterBlum.com
Email:
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"ven" <venome_@poczta.onet.pl> wrote in message
news:cqu5lt$nkl$...
> Hello,
>
> I found a source of datepicker who opens a new window using java to select
> a date, but i saw a datepicker who doesn`t open a new window (dynamically
> opened on click), and i have a question maybe there is a tutorial how to
> write that datepicker?
>
> Ven
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
page load on date selection from custom javascript date picker on safari 3.0.4 bala2008 ASP .Net 0 06-27-2008 04:14 AM
popup date picker cannot choose today's date TB ASP .Net 0 03-16-2006 01:37 PM
Calendar Date-Picker can't find date field (X,Y) randomblink@yahoo.com Javascript 0 01-03-2005 05:59 PM
Date Time Picker Charles A. Lackman ASP .Net 4 11-30-2004 03:07 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57