QA:为何把左边菜单的根节点动态取出横向显示在上方?
答:可以使用Literal控件实现.
参见代码:
界面code: <asp:Literal ID="MenuPlace" runat="server"></asp:Literal>
后台code:
ResourceCollection menuColl = this.GetAllUserMenus();
foreach (MenuResource _menu in menuColl)
{
if (_menu.Parent == null)
MenuPlace.Text += "<td align=\"right\"
background=\"image/ind_003.gif\"
class=\"t1\"
colspan=\"4\"
height=\"27\">
<a href='" + this.UrlBase + "MainMenuOnDefault.aspx?MenuID=" + _menu.UniqueID + "'>"
+ _menu.Name + "</a></td>";
}
QA:从一个页面快速的跳向指定的页面?
<meta http-equiv="refresh" content="0; url=Portaldefault.htm" />