且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.net创建HTML菜单

更新时间:2023-11-17 16:40:16

hi,
后面的asp.net代码中创建以下菜单. 您可以使用LiteralTextBox并使用此代码在后面的代码中创建菜单:
hi ,
you can use LiteralTextBox and use this code to create menu in code behind :
 Literal1.Text = "<ul style='list-style-type: disc;'>"
            + "<li><a href='#'>Hotels</a>"
            + "<ul><li><a href='#'>Supplementary Room Types</a>";
</li></ul></li></ul>


请参阅此参考资料

http://www.w3schools.com/css/css_navbar.asp [ http://www.table2css.com/articles/how-create-css-vertical-drop-down-menu-search-engine-friendly [
see this reference

http://www.w3schools.com/css/css_navbar.asp[^]

http://www.table2css.com/articles/how-create-css-vertical-drop-down-menu-search-engine-friendly[^]