Link to home
Start Free TrialLog in
Avatar of LearningCSharpSQL
LearningCSharpSQL

asked on

Localization Image Button ASP.NET 2.0

Hi
I'm setting up Localization within my site and have hit a small snag, how to i change a image button so that it displays the correct image for each language.

Below is the button in the page.

<asp:ImageButton ID="btnTravel" Height="20px" Width="200px" runat="server" ImageUrl="App_Themes/Style/Images/AgentsSearchBtnGif.gif"
                OnClick="btnTravel_Click" meta:resourcekey="btnTravelResource1" />

Any help would be appreciated
George
ASKER CERTIFIED SOLUTION
Avatar of here4u247
here4u247

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
Avatar of LearningCSharpSQL
LearningCSharpSQL

ASKER

Hi here4u247
That works, with the following:
<asp:ImageButton ID="btnTravel" Height="20px" Width="200px" runat="server" ImageUrl="<%$Resources:btnImageTravelResource1%>"
                OnClick="btnTravel_Click" meta:resourcekey="btnImageTravelResource1" />

resx file i have:
name: btnImageTravelResource1
value: App_Themes/Style/Images/SearchBtnGif.gif

problem is with the image button, i have to remove the height attribute to get the image to display the correct height properly.
Do you know if i'm doing this correctly are is this a bug?

Regards
George
Hi here4u247
Works OK now.
Thanks
George