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/Ag entsSearch BtnGif.gif "
OnClick="btnTravel_Click" meta:resourcekey="btnTrave lResource1 " />
Any help would be appreciated
George
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
OnClick="btnTravel_Click" meta:resourcekey="btnTrave
Any help would be appreciated
George
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi here4u247
Works OK now.
Thanks
George
Works OK now.
Thanks
George
ASKER
That works, with the following:
<asp:ImageButton ID="btnTravel" Height="20px" Width="200px" runat="server" ImageUrl="<%$Resources:btn
OnClick="btnTravel_Click" meta:resourcekey="btnImage
resx file i have:
name: btnImageTravelResource1
value: App_Themes/Style/Images/Se
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