Solved

explicite Resource

Posted on 2013-01-16
3
257 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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