读书人

关于应用票据认证后的一些参数使用

发布时间: 2012-12-25 16:18:28 作者: rapoo

关于使用票据认证后的一些参数使用

1.

int y = fdao.count(" username='"+User.Identity.Name+"' and proid="+proid);int x = fdao.count(" username="+User.Identity.Name);

?

2.判断用于登录的了没有

if(!User.Identity.IsAuthenticated)

?? ? ? ? ? ?{

?? ? ? ? ? ? ? ?Xuning.shop.Utility.tool.Alert("用户没有登录呢",this.Page);

?? ? ? ? ? ? ? ?return;

?? ? ? ? ? ?}

读书人网 >编程

热点推荐