Menu Control with Multiview Control ???



Good morning friends,

I am working with ASP.NET 2.0 -- VB code behind

I have created tabbed pages using the Menu control with the Multiview
control. Using the menu control to display the tabs, and the Multiview
control to display the content that corresponds to the selected tab.

My Menu control needs to be able to switch language from English or French
depending on the language chosen by the user.

At the moment I have hard coded the Text: area to the English language.

I tried to dump asp code to pick either ENG language or FRE depending on the
page lang="en" or page lang="fr"
<%

If Request.QueryString("lang") = "en" Then

%>

However I receive an ::::::::::::::::::: Error: ASP.NET
Runtime..........Code blocks are not supported in this context.

My question is,

Is there a way to access the Text portion of the Menu control to switch
languages from English to French on the Source side of the code OR should I
try and access it through the vb.aspx code side of things? And how may I
chnage it back and forth.

Please see below....................


My Menu control CODE:
<asp:Menu

id="menuTabs"

CssClass="menuTabs"

StaticMenuItemStyle-CssClass="tab"

StaticSelectedStyle-CssClass="selectedTab"

Orientation="Horizontal"

OnMenuItemClick="menuTabs_MenuItemClick"

Runat="server" Width="370px" BackColor="Transparent"
DynamicHorizontalOffset="2" Font-Names="Arial" Font-Size="0.8em"
ForeColor="Transparent" StaticSubMenuIndent="10px" Font-Bold="True"
Height="20px" BorderColor="Transparent">

<Items>

<asp:MenuItem

Text="ENGLISH FIRST SECTION" <<<<< --- Need to have this change to
Text="Francais Premier Section"

Value="0"

Selected="True" />

<asp:MenuItem

Text="ENGLISH SECOND SECTION" <<<<< --- Need to have this change to
Text="Francais Deuxieme Section"

Value="1"/>

<asp:MenuItem

Text="ENGLISH THIRD SECTION"<<<<< --- Need to have this change to
Text="Francais Troisieme Section"

Value="2" />

</Items>

<StaticMenuItemStyle CssClass="tab" HorizontalPadding="5px"
VerticalPadding="2px" />

<StaticSelectedStyle CssClass="selectedTab" BackColor="White" />

<DynamicHoverStyle BackColor="Transparent" />

<DynamicMenuStyle BackColor="Transparent" BorderColor="Transparent" />

<DynamicSelectedStyle ForeColor="Black" />

<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />

<StaticHoverStyle BorderStyle="Solid" Font-Bold="True" />

</asp:Menu>

Any ideas would be greatly appreciated,

Thanks in advance,

~Brad


------------------------------
Brad Isaacs
..NET Web Developer
www.webdevcreations.com
bisaacs@xxxxxxxxxx


.



Relevant Pages

  • Re: Three Dog Problems
    ... If you can control the meaning of words, ... This is too narrow a view for the role of language. ... Orwell was just.... ... His idea of history and its control, culture and its control, ...
    (sci.cognitive)
  • Re: Suggestion for review: a taxonomy of thread safety
    ... > I have successfully implemented event-based robotic control ... > systems using multiple threads of control. ... > program had no such problems was because I used a language ... It will write to a shared memory area. ...
    (comp.programming)
  • Re: definition of a highlevel language?
    ... to the language of the problem domain. ... while control: ... And if you would propose this solution to a control system engineer, ... So an adequate high level language, ...
    (comp.lang.python)
  • Re: Microsoft Word 2007 Date Format and Header
    ... Go to the Control Panel>Regional and Language Options and click on the Date ... all my default language settings are also set the English (South ... Is there any way that I can change to format of this ...
    (microsoft.public.word.docmanagement)
  • Re: Increasing efficiency in C
    ... > You keep control of everything. ... C is a 'lightweight', *flexible* language. ... Depends upon the machine, but yes, imo one should ... nor 'plug-board' programming ...
    (comp.lang.c)