摘要: Ps:记一下用的时候,一不小心我手贱碰到的问题吧:我在页面里面加上了form runat=server,然后所有的html控件就再也找不着了。就是下面的control collection这里,如果加上form runat=server标签,页面里面所有的控件就会变为form控件的子集。这样产生了问... 阅读全文
posted @ 2015-05-22 16:35 calochCN 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.母版页在标签中可以设置,注意标签是runat="server"的。2.子页在有个Title属性,默认值是Untitled Page,如果想用母板页的Title,可以将此属性去掉或值改为空。3.母版页和子页在后台代码Page_Load中都可以加上Page.Title = "..." 来设置标题。优... 阅读全文
posted @ 2015-05-22 10:14 calochCN 阅读(170) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-05-22 09:34 calochCN 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 这个是页面里的代码需要在上面引入: 后台用法:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;... 阅读全文
posted @ 2015-05-22 09:29 calochCN 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 需要建立一个根文件夹 ~/xml/couter.txt#region网站访问量protectedvoidpageviews(){intcount=0;//数据累加intStat=0;StreamReadersrd;//取得文件的实际路径stringfile_path=Server.MapPath("... 阅读全文
posted @ 2015-05-22 09:05 calochCN 阅读(182) 评论(0) 推荐(0) 编辑