By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,773 Members | 1,779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,773 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.