在dw中编写的asp.net 程序用ie8运行时读不了中文
在dw中编写的asp.net 程序用ie8运行时读不了中文,无论是value值或是text值都只能取数字或英文,求哪位高手指点啊
补充:<script language="vb" runat="server">
sub page_load(sender as object, e as eventargs)
if not page.ispostback then
myselect.items.add("信息软件业")
myselect.items.add("电子电机业")
end if
end sub
sub my_click(sender as object, e as eventargs)
myselect.items.add(myjob.text)
mylabel.text="已经新增"& myjob.text
end sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<asp:label id="mylabel" runat="server" />
<form runat="server">
现有职业类别:
<br>
<asp:ListBox ID="myselect" runat="server" Rows="5"/><br >
新增职业类别:<asp:TextBox ID="myjob" runat="server"/>
<asp:Button ID="mybutton" runat="server" OnClick="my_click" text="新增"/>
</form>
</body>
</html>
运行时输入中文按新增按钮后列表框里出现问号
答案:<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
其他:uft-8改成GBK ie8运行时读不了中文 什么意思?
是不是显示乱码
乱码的话 保存时候选下编码格式就好了
比如 utf8
上一个:求一段asp 弹出对话框,有确定和取消两项,如果点确定就往下执行,如果点取消就中止程序退出
下一个:连接到sql server的asp.net程序如何在sql server express上运行