Solved

Localization Image Button ASP.NET 2.0

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

25 Experts available now in Live!

Get 1:1 Help Now