上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: Membership、MembershipUser和Roles类第一部分用户与角色管理在asp.net2.0中是通过Membership和Roles两个类来实现的。Membership:用户成员账号管理,用户名、密码、邮箱等Roles:负责用户和群组之间关系管理。l Membership类:主要是创建用户帐号、验证用户身份和管理用户设置属性:1) EnablePasswordReset:获取一个值,以指示是否可以重置密码。2) EnablePasswordRetrieval:获取一个值,以指示是否允许用户提取密码。3) HashAlgorithmType:获取一个值,密码的算法识别项4) Ma 阅读全文
posted @ 2012-12-21 10:41 Raywang80s 阅读(255) 评论(0) 推荐(0) 编辑
摘要: session 不为空。用 Page.User.Identity.Name 或者 HttpContext.Current.User.Identity.Name取得用户名。或者全称System.Web.UI.Page.User.Identity.Name和System.Web.HttpContext.Current.User.Identity.Name 阅读全文
posted @ 2012-12-15 09:35 Raywang80s 阅读(409) 评论(0) 推荐(0) 编辑
摘要: <div align="center"> <!----------------------以下代码用来显示flash-------------------------> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1 阅读全文
posted @ 2012-12-13 15:33 Raywang80s 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2 阅读全文
posted @ 2012-12-13 15:31 Raywang80s 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 给Session赋值:Session["session名字"]=要赋给Session的值读取Session的值:要得到的数据类型 变量=(要得到的数据类型)Session["session名字"];public class HomeController : Controller{ public ActionResult Index( ) { ViewBag.Message = "欢迎使用 ASP.NET MVC!"; Session[ "KeyName" ] = "Test"; return V 阅读全文
posted @ 2012-12-11 09:09 Raywang80s 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 〈form method="POST"〉〈input type="button" value="按钮" name="B1" style="font-family: 隶书; font-size: 9pt; background-image: url(’file:///D:/Inetpub/wwwroot/asp/wwwboad/IMAGES/asp400.jpg’); border-left: medium ridge rgb(128,0,0); border-right: medium none rgb( 阅读全文
posted @ 2012-12-06 10:28 Raywang80s 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 直接给 input type="password"的输入框赋值不行,由于安全因素,不允许对密码框赋默认值,只能通过键盘的方式输入值。而又要在密码框显示*密码,换个思路使用简单的js脚本即可实现这个效果。<input type="password" id="txtPass" style="display:none;" runat="Server"/><input type="text" runat="server" id="txt 阅读全文
posted @ 2012-12-06 10:02 Raywang80s 阅读(4325) 评论(0) 推荐(0) 编辑
摘要: Html.ActionLink只支持文字链接,现在我们利用C#的扩展方法写一个Html.ActionLinkWithImage()让其支持图片链接的功能。一、首先新建一个静态类,将命名空间在改在System.Web.Mvc下,代码如下using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace System.Web.Mvc { public static class MyHelpler { p... 阅读全文
posted @ 2012-12-04 17:33 Raywang80s 阅读(582) 评论(2) 推荐(1) 编辑
摘要: 开始不间断收集linq查询使用的方法,日拱一卒,月可渡江。 阅读全文
posted @ 2012-11-30 13:11 Raywang80s 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Transform ASP.NET MVC3 Default Template with Twitter Bootstrap[转摘]By Aniruddha Guin, 18 Jun 2012IntroductionThe ASP.NET MVC3 default template from Visual Studio 2010 is a very useful tool for developers to create something very quickly by offering a structured project template. Twitter Bootstraphas 阅读全文
posted @ 2012-11-27 15:46 Raywang80s 阅读(1315) 评论(1) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页