Link to home
Start Free TrialLog in
Avatar of LelloLello
LelloLello

asked on

<asp:Label id="searchInstructions" for="TextBox" runat="server">Label</asp:Label></P>

Hi Expert,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
using CCFA.Utilities;
using Sitecore.Data.Items;
using CCFA.LuceneUtils;
using System.Data.SqlClient;

protected System.Web.UI.WebControls.Label searchInstructions;

On my Pages the following
searchInstructions.Text = "Artist Name:";
searchInstructions.Text = "Nom de l'artiste:";

is not displaying, It is displaying Label instead of the .text

<asp:Label id="searchInstructions" for="TextBox" runat="server">Label</asp:Label></P>

Why ?
Avatar of LelloLello
LelloLello

ASKER

ASKER CERTIFIED SOLUTION
Avatar of disrupt
disrupt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, i'm able to show the button menu.gif  on the English  and the button on the french.

Could you please tell me in my code how to fix that label for me in my code how i can show it ?

<asp:Label id="searchInstructions" for="TextBox" runat="server">Label</asp:Label></P>

Please open attached file. User generated image User generated image User generated image User generated image
how can u fix that ?

<asp:Label id="searchInstructions" for="TextBox" runat="server">Label</asp:Label></P> ???
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I remove below the code didn't change anything...

 protected void Page_Load(object sender, EventArgs e)
        {
            // english Category
            searchInstructions.Text = "Artist Name:";

            // Set Go Button
            _ibtGo.ImageUrl = "/common/artbank/images/misc/button_go_grey-e.gif";

           

            if (Sitecore.Context.Language.ToString() == "fr")
            {
                // french Categorie
                searchInstructions.Text = "Nom de l'artiste:";
           
                _ibtGo.ImageUrl = "/common/artbank/images/misc/button_go_grey-f.gif";
           
            }              
        }

The value of searchinstructions is not displaying ?  please advice.

<asp:Label id="searchInstructions" for="TextBox" runat="server"></asp:Label></P>