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

ASP.NET 2.0个性化配置(profile)

为每个用户存储配置信息 以前保存用户配置信息时用到的是session和cookie。 session会话结束,保存的个人信息就会丢失,而cookie在一定程度上存在安全隐患
asp.net 2.0引入的profile技术 可以很好的解决该问题。
强类型 长期保存 支持匿名用户
定义配置(profile)
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <appSettings/>
    <connectionStrings>
        <add name="Northwind" connectionString="Server=localhost;Integrated Security=True;Database=Northwind" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
        <anonymousIdentification enabled="true" />
        <profile>   //定义配置(profile)
            <properties>
                <add name="Theme" allowAnonymous="true" />
                <add name="LastVisit" type="System.DateTime" allowAnonymous="true" />
            </properties>
        </profile>
<!--
        <webParts>  //定义配置(webParts)
            <personalization defaultProvider="AspNetSqlPersonalizationProvider"/>
        </webParts>
-->
        <!-- 


相关文档:

asp.net,c#,vb,vbs,js各个语言的邮箱发送源代码

发送端以163为例
一、asp.net版   using System.Web.Mail; //命名空间引用 
c#
        MailMessage mail = new MailMessage();
        mail.To = "shadow103@qq.com";  //接受人的邮箱
     & ......

ASP.NET GridView的使用详解


这是要实现的功能:
第一步:拖入GridView控件 并且完成查询所有数据的方法 通过this.GridView1.DataSource 获取集合数据   GridView1.DataBind() 绑定数据
第二步:实现全选功能
1. 页面代码:
代码
 <asp:TemplateField HeaderText="全选">
       &nbs ......

定义和使用ASP.NET Profile(附例)

1、双击一个数据源控件,将要存储profile的数据库作为数据源加入控件(这个步骤没什么用,只是为了方便大家用控件建立连接,这样不容易出错),建立好之后将design页面的数据源控件删除,你会发现在web.config里还是有一条连接语句,不要删除,我们下面将用到它,如: <connectionStrings>
  <add ......

asp.net 下实现文件上传进度条(IHttpModule)

本文将探讨asp.net下实现文件上穿进度条的方法。
一般情况下,要实现上传进度条首先要实现上传文件分块读取,而默认情况下,iis将直接把上传的文件一次读入到内存中,所以本处的难点在于拦截iis的文件上传过程,转而自己的实现方式。所以,我们可以实现一个IHttpModule来处理上传过程。具体的过程是Application_BeginReque ......

asp.net成长日记

1、建立数据层 连接数据库->建立数据集*.xsd->表中建立查询方法
2、建立业务逻辑层 包装TableAdapter方法成类
3、建立母板页和站点导航( CSS待学习)
4、使用数据源展现数据 五种数据源 编辑数据源参数 使用tableadapter方法
5、使用dropDownList过滤主-从报表
     使用tableadapter方法 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号