469,657 Members | 1,841 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,657 developers. It's quick & easy.

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 2227
"=?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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Caesar Augustus | last post: by
2 posts views Thread by Vishal | last post: by
1 post views Thread by Ali | last post: by
4 posts views Thread by Ali | last post: by
reply views Thread by Wyatt70 | last post: by
reply views Thread by GV | last post: by
2 posts views Thread by Alex Lee | last post: by
7 posts views Thread by pankajit09 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.