Solved

explicite Resource

Posted on 2013-01-16
3
254 Views
Last Modified: 2013-01-17
Hello,

I use explicite localization. Now I want combine the Resource string with a other string for the text attribute of a button control
like this:

<asp:Button ID="Button1" runat="server" Text="<%$ Resources:cari, EK %> test" />

but this doesn't work - havy anyone a solution?

Thank you
Reiner
0
Comment
Question by:seffer
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 500 total points
Comment Utility
Try this,
    <asp:Button ID="Button1" runat="server" Text='<%# String.Format("{0}{1}",Resources.myResource.cari,"test")  %> ' ></asp:Button>

Open in new window


protected void Page_Load(object sender, EventArgs e)
    {
        Button1.DataBind();
    }

Open in new window

0
 

Author Comment

by:seffer
Comment Utility
ok thank you, it works

But how can I do this with controls which I can not databinding?

Thank you
Reiner
0
 
LVL 18

Expert Comment

by:Rajar Ahmed
Comment Utility
If your using expression binding on aspx you have to databind the corresponding control or you can call Page.DataBind(); globally.
Page.DataBind();

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

11 Experts available now in Live!

Get 1:1 Help Now