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.