<iframe name="content" id="content" frameborder="0" width="628" height="500px" src="Home/WorkTable.aspx" class="iscoll" onload="changetitle()"></iframe>
我想根据权限号的不同在浮动框架里显示不同的页面,怎么做啊?? 望高手指教啊???
/// <summary>
/// 判断是否有权限
/// </summary>
protected bool HasPermission(int perId)
{
if (Session["System.User"] == null || Session["System.Role"] == null)
return false;
string roleName = Session["System.Role"].ToString().Trim();
if (roleName == "系统管理员") return true; string userId = Session["System.User"].ToString();
PDUser user = new PDUser();
return user.HasPermission(userId, perId);
}
我想根据权限号的不同在浮动框架里显示不同的页面,怎么做啊?? 望高手指教啊???
/// <summary>
/// 判断是否有权限
/// </summary>
protected bool HasPermission(int perId)
{
if (Session["System.User"] == null || Session["System.Role"] == null)
return false;
string roleName = Session["System.Role"].ToString().Trim();
if (roleName == "系统管理员") return true; string userId = Session["System.User"].ToString();
PDUser user = new PDUser();
return user.HasPermission(userId, perId);
}
解决方案 »
- 想要将向导的输入检查放到代码外部来定义,有什么办法?
- 复杂的简单
- 关于DataGridView设置DispalyIndex后显示顺序不正确问题
- WINFORMS里有没有等待的控件啊?
- C#如何实现程序随Windows的启动而一起运行???
- MSDN 说: int myInt = new int(); 和 int myInt = 0 ; 等同!
- Hello World
- 请教C# 继承机制
- gridview嵌套gridview
- 请问:.net beta2能否在PII350,128M上安装?我怎么也装不上。
- 数据库绑定问题
- 请问有关UDP打洞的问题,如果服务器机房那边是禁了UDP的,那还能不能用UDP打洞?
switch rs("limit").tostring()case "101"
response.redirect("main01.aspx");
break;case "102"
response.redirect("main02.aspx");
break;大概思路就这样,可以无限制扩展......
<iframe frameborder="0" height="100" scrolling="no" src="../初始页面.aspx" width="780" id="IFRAME1" runat="server"></iframe>c#:
case "101"
IFRAME1.Attributes.Add("src", "main01.aspx");
break; case "102"
IFRAME1.Attributes.Add("src", "main02.aspx");
break;