Welcome Guest Search | Active Topics | Sign In | Register

Menu enabled via Page_Load test on cookie Options
Colin
Posted: Saturday, February 28, 2009 8:00:19 AM
Rank: Advanced Member
Groups: Member

Joined: 2/1/2008
Posts: 35
Hi,

I have an .aspx vb screen which requires the user to select a choice from a grid, once selected this choice is written to a cookie and is used whilst the user is on line in the site.

I have an EO Web Menu built in a Master Page that allows the user to navigate around the site but I want to make it unabled (enabled="false") if the user does not select a choice in the grid first, allowing the user to click on a menu item without selecting the grid displays an error because the cookie has not been selected.


How do I reference a menu that is built in the master page on the choice.aspx vb page codebehind I am using for the grid and make it enabled="false" unless the choice in the grid has been selected?

I was figuring on using Page_Load and checking if the cookie is written like so:
If (Request.Cookies("userInfo") Is Nothing) Then
EO.Web.Menu.Enabled="false"
Else
EO.Web.Menu.Enabled="true"

But this does not work as it is not recognised. My menu on the Master Page is called <eo:menu id="Menu1"

Is this possible to do and what code am I missing?

Thanks.
eo_support
Posted: Monday, March 2, 2009 8:15:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

One way to do so is to expose the menu in your master page, then use @MasterType in your content page to have a strong typed Master property. If you are not familiar with this, you will want to consult other resources. This is generic ASP.NET programming so it would be out of the scope of our support.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.