I am using MS Visual Web Developer 2010 Express with VB.Net.
I have 3 web pages - Site.Master with Site.Master.vb, Login.aspx with Login.aspx.vb, CreateAccount.aspx with CreateAccount.aspx.vb
If I put the following statement in the Site.Master.vb Page_Load:
NavigationMenu.Items.Item(2).Selectable = False it works fine. It makes the menu item unselectable. However, this is not where I want to do this.
I want to be able to make the menu items selectable/unselectable programatically thru other programs such as Login.aspx.vb and CreateAccount.aspx.vb. I realize that NavigationMenu is declared in Site.Master and not declared in Login.aspx.vb or CreateAccount.aspx.vb
How can I get this to work in Login.aspx.vb and CreateAccount.aspx.vb?
I tried to include sample code but I got: The code snippet in your post is formatted incorrectly. Please use the Code button in the editor toolbar when posting whitespace-sensitive text or curly braces
Thank you for your time.