VB工程
[color=red]<Authorize()>[/color][img]http://dl.iteye.com/upload/attachment/196130/454da832-d035-36d8-9e6a-27bcf238d9ba.png[/img]
如图上:<Authorize()>
在没有登录的情况下(既没授权)~改变更目标画面是不会被访问的~将返回到Web.Config定义的默认页面
<authentication mode="Forms">
[color=red]<forms loginUrl="~/Account/LogOn" timeout="2880"/>[/color]
</authentication>
===========================================
[color=red]<PropertiesMustMatch>[/color]
[img]http://dl.iteye.com/upload/attachment/196133/796273dc-5ecb-3b6f-9f9f-2a34d44dc895.png[/img]
在定义属性是,如新旧密码俩属性时,通过<PropertiesMustMatch>来预定义两个属性必须保持一致的约束。
而 [color=red]<Required()>[/color]则是预定义改属性为必须入力项目。
[color=red]<Authorize()>[/color][img]http://dl.iteye.com/upload/attachment/196130/454da832-d035-36d8-9e6a-27bcf238d9ba.png[/img]
如图上:<Authorize()>
在没有登录的情况下(既没授权)~改变更目标画面是不会被访问的~将返回到Web.Config定义的默认页面
<authentication mode="Forms">
[color=red]<forms loginUrl="~/Account/LogOn" timeout="2880"/>[/color]
</authentication>
===========================================
[color=red]<PropertiesMustMatch>[/color]
[img]http://dl.iteye.com/upload/attachment/196133/796273dc-5ecb-3b6f-9f9f-2a34d44dc895.png[/img]
在定义属性是,如新旧密码俩属性时,通过<PropertiesMustMatch>来预定义两个属性必须保持一致的约束。
而 [color=red]<Required()>[/color]则是预定义改属性为必须入力项目。