Coolite that just passed my local testProgramWhen copying data to another program, the unterminated String constant error occurs.
This error is generally caused by encoding. So I changed the encoding of the current page. Added
< Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312" >
The problem persists. After searching for a long time, I decided to turn off the global language in Web. config.
< System . Web >
< Globalization Fileencoding = "Gb2312" Requestencoding = "Gb2312" Responseencoding = "Gb2312" Culture = "ZH-CN" />
</ System. Web >
I did not expect the problem to be solved.
However, when the above configuration is removed, garbled characters may occur when the usercontrol page is used. Finally, set the coolite page to the specified encoding. The configuration is as follows:
Code <! -- Encoding of a page -->
< Location Path = "Helpdesk/require/rqiapplywindow. aspx" >
< System . Web >
< Globalization Fileencoding = "Gb2312" Requestencoding = "Gb2312" Responseencoding = "UTF-8" Culture = "ZH-CN" />
</ System. Web >
</ Location >