Solved

Localization Image Button ASP.NET 2.0

Posted on 2007-03-20
3
865 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now