473,386 Members | 1,710 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,386 software developers and data experts.

Calendar popup - using ASP textbox instead of HTML textbox

I am trying to use a calendar popup to populate a date in a textbox. I am
using the example described in this article:

http://aspnet.4guysfromrolla.com/articles/030202-1.aspx

However, this article uses a regular HTML input box, and I need to use an
ASP Web control textbox. When the latter is rendered in the browser, some
extra stuff like _ctl0 is added to the name of the textbox. So the calendar
can't find the box to populate it.

Can you tell me how to modify the example in this article to work with an
ASP textbox instead of the input box? How do you know in advance what ASP is
going to name the text box?

Many thanks
Nov 19 '05 #1
3 2356
"=?Utf-8?B?Q2hyaXM=?=" <Ch***@discussions.microsoft.com> wrote in
news:DA**********************************@microsof t.com:
I am trying to use a calendar popup to populate a date in a textbox.


Check out this popup control:

http://www.eworldui.net/CustomContro...ndarPopup.aspx

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
I think I have come across something similar. If you are creating controls
dynamically you cannot get the actual name of the control until prerender.
What I would suggest doing is overriding your OnPreRender event and
determining the name of the control you need. There are a few ways to do
this. Perhaps this article will help.

http://muellerdesigns.net/DasBlog/Pe...7-2b227c921d7f

--
Alex Mueller

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
I am trying to use a calendar popup to populate a date in a textbox. I am
using the example described in this article:

http://aspnet.4guysfromrolla.com/articles/030202-1.aspx

However, this article uses a regular HTML input box, and I need to use an
ASP Web control textbox. When the latter is rendered in the browser, some
extra stuff like _ctl0 is added to the name of the textbox. So the calendar can't find the box to populate it.

Can you tell me how to modify the example in this article to work with an
ASP textbox instead of the input box? How do you know in advance what ASP is going to name the text box?

Many thanks

Nov 19 '05 #3
I also make a popular DatePicker, "Peter's Date Package"
(http://www.peterblum.com/datecontrols/home.aspx). When I see people trying
to build their own, they usually don't realize that some very good ones are
already done and either cheap (like mine) or free.

Take a look through this thread: http://forums.asp.net/815867/ShowPost.aspx.
I give a number of reasons I rewrote my own calendar to stop using the popup
window and start using a javascript calendar.

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

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
I am trying to use a calendar popup to populate a date in a textbox. I am
using the example described in this article:

http://aspnet.4guysfromrolla.com/articles/030202-1.aspx

However, this article uses a regular HTML input box, and I need to use an
ASP Web control textbox. When the latter is rendered in the browser, some
extra stuff like _ctl0 is added to the name of the textbox. So the
calendar
can't find the box to populate it.

Can you tell me how to modify the example in this article to work with an
ASP textbox instead of the input box? How do you know in advance what ASP
is
going to name the text box?

Many thanks

Nov 19 '05 #4

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

Similar topics

2
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
2
by: Vishal | last post by:
Hey, I have a popup calendar control implemented in a user control. Now I need to send the date which the user has entered manually in the textbox to that control via a querystring. So I...
1
by: Ali | last post by:
I am trying to create a popup calender so when a user click on a image on the main form, a calender will then popup, the user will select a date and the date will then be passed back to the main...
4
by: Ali | last post by:
i am using visual studio 2005 and I am trying to create a popup calender so when a user click on a image on the main form, a calender will then popup, the user will select a date and the date will...
0
by: Wyatt70 | last post by:
I'm attempting to implement a javascript popup calendar in a DataGrid. The calendar will be used to insert a date into a textbox. I keep getting a "System.NullReferenceException: Object reference...
0
by: GV | last post by:
Hi all, New to developing in VS 2005 ASP 2.0 Trying to have a easy pop calender for a button on a web page. I keep getting a error message in IE6 that says: Line 69 Char 3 Error:...
2
by: Alex Lee | last post by:
HI all: newbie question here -- Does anyone know how google calendar display a popup textbox when you click on the quick add link? For those who have not seen google calendar -- the function can...
1
by: afr0ninja | last post by:
Hello all, and thank you in advance for your assistance. I'm pretty new to access and I'm trying to teach myself some VBA by using various bits of code I find here and there mixed with my own....
7
by: pankajit09 | last post by:
Hello, I have developed a calendar program in Javascript which opens a calendar as a popup window and when a user clicks on a date the date is copied into the parent windows textbox. The code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.