Guide: ASP.NET seems to be flexible, this is attributed to its configuration of text files.
Another method of using the page identifier should be continued from the ASP.
The first relatively large problem that the author just started to write the ASP program is Chinese display problem. After running, it is found that the Chinese read from the database from the database becomes ?????, a bit similar to this frequency in JSP The highest Chinese display has a problem. I checked the information. I found that there is a way to solve Chinese problems.
method one:
After reading the Microsoft NGWS documentation, I found that some of the common problem in the document is mentioned to add a config.web file to
Under the web directory, tried it, Chinese displayed it is OK.
Methods as below:
Create a file config.web, the content is as follows, put it in the web directory
RequestentEncoding = "UTF-8" ResponseEncoding = "UTF-8" /> configure> Later, I saw someone in the forum issued a post to change UTF-8 to GB2312. It can also be, the author has not tried it. You can try it. Method Two: Later, I subscribed to Microsoft's newsgroup, and I found this in Microsoft's news .framework.aspplus.General An article on a problem, the method is added <% @ codepage = "936"%> to each page, a bit similar to the JSP <% @ Page ContentType = "text / html; charset = GB2312"%> I quickly tested it, it's ok !!! Examples are as follows: <% @ Codepage = "936"%> <% @ Import namespace = "system.data"%> <% @ Import namespace = "system.data.ado"%> <% @ Import namespace = "system.globalization"%>
hEAD>