Last post Dec 18, 2007 11:39 PM by Eduardo75
Mar 17, 2007 06:37 PM|lee2006|LINK
Hi there in need to use the menu adapter from the tool kit
Problem I have is that my menu is populated at runtime using vb
the code is as follows
Tab1Item.Text = xmn(i).Value
this works fine till i try to use the adpter and it then says that eval can only be used for a databound control
why is this happening it works great without the adapter but i need to use the adapter as i need to have the menu list styled
any ideas or help
Mar 18, 2007 12:48 PM|lee2006|LINK
Found the answer
# Eval("Text") %>
this works great
Mar 20, 2007 10:11 PM|bcweed966|LINK
# Eval("Text") %> just the same and gives the exact same error.
I dont understand why I would change it to <%#container.DataItem.NavigateUrl%>.... why??? =whats that container? and that navigateURL???
anyway after doing it it just gave me a blank page instaed of my page
Mar 20, 2007 10:13 PM|bcweed966|LINK
ok I resolved it by changing (i figured) the navigateURL to the Text property and it works
Dec 18, 2007 11:39 PM|Eduardo75|LINK
Sorry, I have the same problem. I don't understand why I have to use <%#container.DataItem.NavigateUrl%>
What is container for? When I use it, I get this error: CS0103: The name 'container' does not exist in the current context
I hope you can help me.