上下主题protected void Page_Load(object sender, EventArgs e) { int.TryParse(Request["ID"], out queryID); if (!IsPostBack) { BindData(queryID); } } public void BindData(int ID) { var result = from f in site... Read More
posted @ 2012-11-08 10:44 double_ed Views(135) Comments(0) Diggs(0)
1.Application:用于保存所有效户共用的数据信息。 在Asp.Net中类似的设备数据最好保存在Web.config文件中。若是应用Application对象,一个须要推敲的题目是任何写操纵都要在 Application_OnStart事务(global.asax)中完成。尽管应用Application.Lock和 Application.Unlock办法来避免写操纵的同步,然则它串行化了Application对象的恳求,当网站接见量大的时辰会产生严重的机能 瓶颈。是以最好不要用此对象保存大的数据集。应用如下://存放信息 Application["UserNameID&qu Read More
posted @ 2012-11-08 10:17 double_ed Views(184) Comments(0) Diggs(0)