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

关于 ASP.NET 三层架构

一般对于用过 动软.net代码生成器的人来说,省了好多事情。  model (实体层),  dal(数据访问层),  bll(业务逻辑层)
model 就不用说了 dal数据访问层有的时候要调用存储过程,以前很少写,觉得参数的调用挺费劲的,大家有什么好的办法能提高存储过程吗!!!!!!!!!!


相关文档:

在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)
{
   ......

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 文件上传大小限制解决方案修改IIS7/7.5配置

IIS 7 默认文件上传大小时30M
要突破这个限制:
1. 修改IIS的applicationhost.config
    打开 %windir%\system32\inetsrv\config\applicationhost.config
     找到: <requestFiltering>节点,
  这个节点默认没有 <requestLimits maxAllowedContentLength="上传 ......

asp.net 邮件发送

//实例化一个SmtpClientsmtp.DeliveryMethod = SmtpDeliveryMethod.Network;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;

//将smtp的出站方式设为 Networksmtp.EnableSsl = false;
//smtp服务器是否启用SSL加密
smtp ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号