473,407 Members | 2,306 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,407 software developers and data experts.

How to use a javascript popup calendar in asp.net?

I know AjaxControlToolKit has a popup calendar control. It does not
seem to have a year navigation option. In other words, if I wanna
select a date in 1012, I will have to navigate to that year monthly
--- dozens of clicks in a row!

I prefer the free javascript popup calendar at

http://www.mattkruse.com/javascript/calendarpopup/

I tried it out. It works perfectly if I simply do it in a traditional
HTML page or a plain independent ASPX page. But, it does not work if
the ASPX page has a master page.

The error message is the kind of notorious Javacript error which says
that the thing referred to "is null or not an object".

It is hard to NOT to have a master page these days, right? So,
besides NOT using master pages, is there a solution to this problem?

Looks like the the javascript calendar script is not loaded if we use
master page, since it is complaining about null or non-object-hood.

Thank you.

Nov 4 '07 #1
5 6196
On Nov 4, 1:33 pm, gnewsgroup <gnewsgr...@gmail.comwrote:
I know AjaxControlToolKit has a popup calendar control. It does not
seem to have a year navigation option. In other words, if I wanna
select a date in 1012, I will have to navigate to that year monthly
--- dozens of clicks in a row!

I prefer the free javascript popup calendar at

http://www.mattkruse.com/javascript/calendarpopup/

I tried it out. It works perfectly if I simply do it in a traditional
HTML page or a plain independent ASPX page. But, it does not work if
the ASPX page has a master page.

The error message is the kind of notorious Javacript error which says
that the thing referred to "is null or not an object".

It is hard to NOT to have a master page these days, right? So,
besides NOT using master pages, is there a solution to this problem?

Looks like the the javascript calendar script is not loaded if we use
master page, since it is complaining about null or non-object-hood.

Thank you.
Oh, I think it is necessary to add in case you wonder why I don't put
the javascript link or code in the master page.

I tried it. It still refuses to work.

Nov 4 '07 #2
"gnewsgroup" <gn********@gmail.comwrote in message
news:11**********************@v3g2000hsg.googlegro ups.com...
is there a solution to this problem?
What did Matt Kruse say when you emailed him...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 4 '07 #3
On Nov 4, 1:50 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:11**********************@v3g2000hsg.googlegro ups.com...
is there a solution to this problem?

What did Matt Kruse say when you emailed him...?

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
I haven't tried emailing him, but I can give it a try. Not sure if I
will receive a reply.

Nov 4 '07 #4
On Nov 4, 1:50 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:11**********************@v3g2000hsg.googlegro ups.com...
is there a solution to this problem?

What did Matt Kruse say when you emailed him...?

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
A few tests seem to tell me that if I try to use the popup calendar
inside <form runat="server"</form>, then it is not gonna work.

I cannot simply put the javascript calendar control outside the <form>
tag because I would like to put it in a GridView.

Sounds like it is a dead end.

Nov 4 '07 #5
"gnewsgroup" <gn********@gmail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
Sounds like it is a dead end.
Sounds like a very poorly written control...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 4 '07 #6

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

Similar topics

19
by: Stimp | last post by:
preferably one that when clicked can update three date dropdowns (day, month, year) like http://www.visitdublin.com/carhire/avis.asp Don't mind paying for the file... anyone seen something...
2
by: Ravikanth[MVP] | last post by:
Hi Check whether textbox control name is 'txtDischargeDate' or it contains automatically generated id? HTH Ravikanth >-----Original Message-----
1
by: Gilles T. | last post by:
I have calendar control in Javascript including in the Head of mu page: <script charset="iso-8859-1" language="JavaScript" src="popcalendar.js"></script> I call this calendar popup with a image...
0
by: Caesar Augustus | last post by:
I'm having a problem with two different javascript controls in my app. The first chuck of javascript that I pasted into my app is the client-side calendar control popup which works fine when first...
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...
3
by: anthonybrough | last post by:
I have an asp page that has a form to collect user data in a form. when the user clicks submit the input is validated. If any fields are not acceptable the user clicks on a button to go back to...
0
by: gnewsgroup | last post by:
I am not sure if anyone of you have had such experience. I am trying to use a popup calendar control in my web application. I've tried all kinds of 3rd-party date pickers. For example, the RJS...
1
by: basm101 | last post by:
Hi, I have a java Calendar object, observationDate. java.util.Calendar observationDate=subsequentSub.getObservationDate(); I want to trigger a javascript function upon clicking a radio...
3
by: sbettadpur | last post by:
hello everybody, i am using readymade popup calendar for my application, it's working fine. But i am facing some problem i.e. if i click on the calendar image it will open a calendar. below...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.