摘要: .net页面乱码解决方法:在页面的<head></head>部分确定你的页面字符集<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">比如gb2312,gbk,utf8或在web.config里增加修改<system.web><globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh- 阅读全文
posted @ 2013-01-23 20:37 木兔女侠 阅读(8396) 评论(0) 推荐(0) 编辑
摘要: (1)平常的解决方法:在web.config中添加如下代码<system.web><globalization requestEncoding="gb2312" responseEncoding="gb2312" /></system.web> (2)如果是页面传值:functionxiugai(VolumeHouseName,id,DepartmentId,Remark){window.open("add.aspx?id="+id+"&name="+encodeURIC 阅读全文
posted @ 2013-01-23 20:26 木兔女侠 阅读(1575) 评论(0) 推荐(0) 编辑
摘要: DropDownList1.DataSource = BusinessFacade.glb_Course_ClassList(qp, out RecordCount);(数据源) DropDownList1.DataTextField = "ClassName";(数据源中的字段) DropDownList1.DataValueField = "ClassId";(数据源中的字段) DropDownList1.DataBind(); DropDownList1.Items.Insert(0, new System.Web.UI.WebControls.L 阅读全文
posted @ 2013-01-23 10:54 木兔女侠 阅读(188) 评论(0) 推荐(0) 编辑