473,836 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2386
"=?Utf-8?B?Q2hyaXM=?=" <Ch***@discussi ons.microsoft.c om> wrote in
news:DA******** *************** ***********@mic rosoft.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********@rog ers.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***@discussi ons.microsoft.c om> wrote in message
news:DA******** *************** ***********@mic rosoft.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****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:DA******** *************** ***********@mic rosoft.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
3423
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 controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
2
1164
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 thought I could do something like this: <asp:TextBox id="txbAddStartDate" Text="<%#SetTodaysDate()% >" Runat="server" Columns="10"></asp:TextBox> <asp:HyperLink id="linkAddStartDate" runat="server"
1
1928
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 form and populate a textbox. it works fine. but when i use it within a table cell everything worked properly except populating the textbox with the selected date?? any suggestions will be highly appreciated. here's the code which popups the...
4
10022
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 then be passed back to the main form and populate a textbox. it works fine. but when i used master page for all my pages and i put the textbox inside the content , the calender pops up but when i select the date nothing happens .. the textbox was...
0
4027
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 not set to an instance of an object" error, which points to the following line: lnkCalendar.Attributes("OnClick") = String.Format("window.open('Calendar.aspx?textbox={0}','cal','...')", txtEstimatedDeploy) Here is the complete code for the...
0
2019
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: 'this.container' is null or not an object
2
8347
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 be best desribe here with a pic: http://www.google.com/googlecalendar/tour2.html what I am referring to is the white dialog textbox #1 in the legend. Iam not very experience with this kinda thing, it does not appear to be a popup windows --...
1
9678
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. I've seen mentions of this issue in other forums, but haven't found an ansewer (at least one I understand lol) in other postings. I have a text box that users need to input a short date into. I tried using a Access's built in calendar control...
7
1730
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 of the parent window is as follows --> <html> <head> <title>calendar</title> </head>
0
9825
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
9672
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
10854
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10601
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
9388
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
7794
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
6981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5652
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3116
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.