Solved

Localization Image Button ASP.NET 2.0

Posted on 2007-03-20
3
872 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:LearningCSharpSQL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
here4u247 earned 500 total points
ID: 18755088
<asp:ImageButton ID="btnTravel" Height="20px" Width="200px" runat="server" ImageUrl="<%$Resources:btnTravelResource1%>"
                OnClick="btnTravel_Click" meta:resourcekey="btnTravelResource1" />



                       
0
 

Author Comment

by:LearningCSharpSQL
ID: 18755350
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
0
 

Author Comment

by:LearningCSharpSQL
ID: 18755958
Hi here4u247
Works OK now.
Thanks
George
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question