积累

来源:互联网 发布:重启服务器软件 编辑:程序博客网 时间:2024/06/02 21:22

1.让单个div在页面中居中:<div style="width:800px;float:inherit;margin:0px auto;">

2. Repeater中不响应ItemCommand的原因:在Page_Load方法中已经调用了该Repeater的databind()方法。

3.三层结构的web层提示找不到namespace的解决方法:右击solution,选择Reblind Solution.

4.当按扭的id设置为Submit时点击该按扭,会弹出新窗口。

5.用Server.mappath(strPath)时,若显示can't map path, 则说明strPath有错,试着写成"~/.../...的格式。

6.用SqlDataReader时别忘了if(dr.Read()). 否则会出现,"无数据可读"

7.js常见错误: onload="alert(' hello, i'm your friend!');"       在字符串I'm your friend中,有一个单引号', 它会和前面的单引号配对,使后面的内容失效。

原创粉丝点击