登录后用session或cookie来确定用户,实现功能啊
你可以看看IBuySpy Portal的例子
http://www.asp.net/Default.aspx?tabindex=7&tabid=41
你可以看看IBuySpy Portal的例子
http://www.asp.net/Default.aspx?tabindex=7&tabid=41
解决方案 »
- asp.net mvc动态生成控件
- 如何用div写首页的导航下拉菜单?在线等阿
- C# 截取字符串中倒数六个字符
- ASP.NET弱弱的问题。望赐教。。
- FormsAuthentication.SignOut()后User.Identity.IsAuthenticated仍然为True
- 我在用asp.net2.0是,其页面布局总是常在运行时被坏,怎么解除?
- 1.1中的JS,在2.0里执行不了?
- 4. Linkbutton的连接事件为什么不被得到真正的执行?而总是要执行两次page_load呢?
- 为什么我取cookie的截止日期是0001-1-1 0:00:00
- 救命呀!大哥,帮小弟一把呀,必有重谢
- 求最佳的ASP.NET教学书籍(急!)
- 求助:为什么每次刷新都要自动进行一次Insert操作?
Session["Popedom"]就是权限值,形式为“100101”,我现在只是控制Label,但是Label没法加上超链接。
string popedom = Session["Popedom"].ToString().Trim();
string power="";
int powerno;
int i;
for ( i=0;i<popedom.Length;i++)
{
power = popedom.Substring(i,1);
powerno = i;
// Response.Write(power + powerno + " | ");
if (power == "1" && powerno == 0)
{
Label1.Visible = true;
}
if (power == "1" && powerno == 1)
{
Label2.Visible = true;
}
if (power == "1" && powerno == 2)
{
Label3.Visible = true;
}
if (power == "1" && powerno == 3)
{
Label4.Visible = true;
}
}
我用.NET第一次做系统,没辙啊