Solved

explicite Resource

Posted on 2013-01-16
3
261 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
[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 18

Accepted Solution

by:
Rajar Ahmed earned 500 total points
ID: 38783309
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
ID: 38783552
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
ID: 38783575
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 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