2010年6月7日

如何使用ASP.NET Profile

摘要: Asp.Net中有一套与用户相关联的属性设置,可以通过在WebConfig里配置来直接使用,他的作用为存储和使用唯一与用户对应的信息 展现个人化版本的Web应用程序 用户的唯一身份标识在再次访问时识别用户 Asp.Net Profile提供的跟用户相关的类型都是强类型首先生成数据库脚本,使用Visual Studio 2005 命令提示,输入命令行aspnet_regsql -A p -sqlex... 阅读全文

posted @ 2010-06-07 22:08 henzy 阅读(1556) 评论(0) 推荐(0) 编辑

asp.net Context.Handler 页面间传值方法

摘要: 很有用的页面间传值方法(Context.Handler),使用说明一、目前在ASP.NET中页面传值共有这么几种方式: 1、表单提交, <form action= "target.aspx" method = "post" name = "form1"> <input name = "param1" value = "1111"/> <input name = "pa... 阅读全文

posted @ 2010-06-07 21:33 henzy 阅读(331) 评论(1) 推荐(0) 编辑

Server.Transfer和Context.Items

摘要: ////page :A .aspxpublic partial class A : System.Web.UI.Page { public string Name { get { return Button1.Text; } } protected void Page_Load(object sender, EventArgs e) { } protected void Butt... 阅读全文

posted @ 2010-06-07 21:28 henzy 阅读(233) 评论(0) 推荐(0) 编辑

ASP.NET Profile

摘要: 关键   1、配置<system.web>元素下的<profile>元素;如果需要支持匿名的话则还需要配置<system.web>元素下的<anonymousIdentification>元素。示例如下,仅为说明:<profile enabled="true" defaultProvider="SqlProfileProvider" inher... 阅读全文

posted @ 2010-06-07 21:11 henzy 阅读(140) 评论(0) 推荐(0) 编辑

asp.net 2.0 的 profile机制

摘要: asp.net2.0的profile机制在membership表中可以存储一些用户的基本信息,但有的时候,我们需要记录的用户信息远远不止membership表中提供的这些,如qq、msn、家庭住址、联系电话等等。那如何把这些用户信息记录到数据库中呢?在asp.net 2.0 中为我们提供了个性设置的功能――profile。看一下profile的几个特征:1) profile... 阅读全文

posted @ 2010-06-07 21:09 henzy 阅读(391) 评论(0) 推荐(0) 编辑

导航