The calendar control of plum blossom rain is unavailable under ASP. net2.0.

Source: Internet
Author: User

Plum Blossom rain calendar control is indeed very useful, but in Asp.net 2.0, you will find that the previous method is not available, JS reports a "lack of objects ".
The solution is as follows:

1. <% @ page Language = "C #" codePage = "936 ".....
Always add 936; otherwise, an error occurs.
2. Remove
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en ""

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This line

The problem is solved, but I feel that this will affect the internationalization of the website, and may cause the loss of standardized XHTML!

InstanceCode:
/Files/heekui/webdate.rar

Supplement:
Thank you for providing a new solution.

Tested by real machine
The JS file is encoded in UTF-8 format.
CodePage = "936"... can save,
However, if you do not remove the declaration of the xml dtd, the calendar selection interface will not be displayed, even though JavaScript errors will not occur!
Therefore, the second step of the solution is unavoidable.
 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.