Author: newonehere69 | Posted on: 10/20/2010 12:06:01 PM | Views : 238

I am trying to display the menu items and submenus in a navigation menu control.
I am trying the code from this page; http://www.aspnettutorials.com/tutorials/controls/sqldb-driven-menu-csharp.aspx
This is what I got so far;
protected void Page_Load(object sender,EventArgs e) { if(!IsPostBack) PopulateMenu(); } DataSet GetMenuData() { SqlConnection con=new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ToString()); SqlDataAdapter dadCats=new SqlDataAdapter("SELECT * FROM MenuItems",con); SqlDataAdapter dadProducts=new SqlDataAdapter("SELECT * FROM SubMenus",con); DataSet dst=new DataSet(); dadCats.Fill(dst,"MenuItems"); dadProducts.Fill(dst,"SubMenus"); d ...

Go to the complete details ...