Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Localization Image Button ASP.NET 2.0

Posted on 2007-03-20
3
Medium Priority
?
875 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 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

610 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