2006/1/14的问题以及解答

 

 

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" />

posted @ 2006-01-15 22:57  RicoRui  阅读(169)  评论(0编辑  收藏  举报