troubleshooting Question

custom javascript for previous/next month links in <asp:calendar> control

Avatar of prz_
prz_ asked on
1 Comment1 Solution679 ViewsLast Modified:
I need to change the JavaScript that the <asp:calendar> control generates for the previous/next month links. I don't need to change what it does - just how it's written and how it behaves. I have the control load into modal dialogue window but clicking on the prev/next month links causes a new window to open with something like "javascript:__doPostBack('MyCalendar','V3135')" in the url and the control does nothing. From experimenting with the day links, which used to open a new window as well, I think that changing the links to <a href="javascript:;" onclick="__doPostBack('MyCalendar','V3135'); return false;>" with a dynamic date value will probably fix the problem, except I can't figure out how to make this change. How can I manipulate the script in these links? Or is there some other way to make the calendar behave and not open bogus new windows on me?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros