Visual web part calendar doesn't work

kasperEH
kasperEH used Ask the Experts™
on
I have developed a visual web part for SharePoint 2010, and the datepicker doesn't work in production. It works on the development server. I am using a DateTimeControl. In production, it just shows a white square instead of the calendar (see image).Screenshot of errorIn development I get a calendar, and in production I also get a calendar when I use a standard form.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Paul MacDonaldDirector, Information Systems

Commented:
Does this happen across all browsers on the production environment?

Author

Commented:
We mainly use Internet Explorer 11 in our company, but I have tested this page in Firefox 67.0.4, and the problem is the same, there is a blank square where the calendar should be. The date picker works fine in both browsers on the dev server and for standard forms.
NoahHardware Tester and Debugger

Commented:
Hi there! :)

Putting it simply, a website is just a set of written instructions describing the appearance and different capabilities of a website. It is subjective to the browser to render(load) it by reading the entire code of your website and producing a certain output. In addition, all browsers are programmed differently, so how it creates this certain output is different from other browsers.

As for the specifics, it could be that Mozilla Firefox cannot understand statements or variables which might not be programmed for it to understand. If that is the case, then you probably need an extension. It's just like when you are surfing the internet using certain browsers, for Chrome you will need to install vpn extensions while it may not be necessary for others as it could be built-in like for Tor Browser. It depends on how the site is built to function on what platforms as well.
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Author

Commented:
Thank you for your comments, but I don't think this has anything to do with browsers. It works on the dev server for both IE and Firefox, and fails in production for both IE and Firefox.
NoahHardware Tester and Debugger

Commented:
Hi @kasperEH :)

I think we should wait for another expert to join, preferably one who could advise you on your actual web development. Apologies.
Commented:
In the end, I decided to use a standard asp.net Calendar control instead of the SharePoint DateTimeControl. I then put the selected date from the calendar into a textbox. Thank you all, for your comments and suggestions, regarding this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial