易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.net+AJAX 弹出新窗口代码

ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1是updatepanel的id
ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1是updatepanel的id


相关文档:

ASP.NET中"委托"(delegate)的使用简单实例

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
/// <summary>
/// 声明委托
/// </summary>
/// <param name="name"></param>
public delegate void GreetPeopleDelegate(st ......

提高Asp.Net网站性能


不要使用不必要的Session,和ASP中一样,在不必要的时候不要使用Session 
不使用不必要的Server Control  
不使用不必要的ViewState   
不要用Exception控制程序流程
禁用VB和Jscript动态数据类型
使用存储过程完成数据访问
只读数据访问不要使用DataSet  
关闭ASP.N ......

在asp.net中使用session常见问题集锦

问:为什么session在有些机器上偶尔会丢失?  
答:可能和机器的环境有关系,比如:防火墙或者杀毒软件等,尝试关闭防火墙。  
问:为什么当调用session.abandon时并没有激发session_end方法?  
答:首先session_end方法只支持inproc(进程内的)类型的session。其次要激发session_en ......

在asp.net webservice中如何使用session

在使用asp.net编写webservice时,默认情况下是不支持session的,但我们可以把WebMethod的EnableSession选项设为true来显式的打开它,请看以下例子:
1 新建网站WebSite 
2 新建web服务WebService.asmx,它具有以下两个方法:
[WebMethod(EnableSession = true)]
public string Login(string name)
{
   ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号