Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 666643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:50:27+00:00 2026-05-13T23:50:27+00:00

when trying to translate the confirmation message to Norwegian i get the following error:

  • 0

when trying to translate the confirmation message to Norwegian i get the following error:

Cannot have more than one binding on property ‘OnClientClick’ on ‘System.Web.UI.WebControls.LinkButton’. Ensure that this property is not bound through an implicit expression, for example, using meta:resourcekey.

i use Explicit localization in the following manner:

<asp:LinkButton ID="lnkMarkInvoiced" runat="server" OnClick="lnkMarkInvoiced_OnClick"
            OnClientClick="<%# Resources: lnkMarkInvoicedResource.OnClientClick%>"
            Visible="False" CssClass="stdtext" meta:resourcekey="lnkMarkInvoicedResource" ></asp:LinkButton>

here’s the local resource file entry:

  <data name="lnkMarkInvoicedResource.OnClientClick" xml:space="preserve">
<value>return confirm('Er du sikker?');</value>

if i remove the meta attribute i get the English text(default).
how do i get the Norwegian text appearing without resorting to using the code behind?

Update:

removing the meta attribute prevents the exception from occurring but the original problem still exists. I can’t get the Norwegian text to show.

only the default English text shows.

Another Update:

I know this question is getting old but i still can’t get the Norwegian text to display.
If anyone has some tips please post a response.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:50:27+00:00Added an answer on May 13, 2026 at 11:50 pm

    Looks like you’re making the problem harder by inlining the onclick. Why not split it out to a separate line?

    <script>
      function markInvoiced()
      {
        return confirm('<%= Resources.SomehowGet.lnkMarkInvoicedResource.OnClientClick%>');
      }
    </script>
    <asp:LinkButton ID="lnkMarkInvoiced" runat="server" OnClick="lnkMarkInvoiced_OnClick"
            OnClientClick="return markInvoiced();"
            Visible="False" CssClass="stdtext" meta:resourcekey="lnkMarkInvoicedResource" ></asp:LinkButton>
    

    And while we’re looking at your code, you realize that you’re essentially building an <a> tag, right? As such, why not just build an <a> and save yourself some grief?

    And finally, next project why not ditch the built-in ASP.NET localization nighmare in favor of something sane like FairlyLocal, in which case you’d write this:

    <a href="#" onclick="return confirm(<%=_"really?"%>) onserverclick="lnkMarkInvoiced_OnClick" runat="server">
      <%=_("Mark Invoice")%>
    </a> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to translate an object without using glTranslate(). I have searched through web
I'm trying to translate the following JS code to ObjC; It basically defines a
I'm trying to translate an online html page into text. I have a problem
I am trying to translate this into Linq and cannot figure it out: SELECT
I'm trying to translate the following from AT&T assembly to Intel assembly: pushl 2000
I am trying to translate a message generated using C# to JAVA. As a
I'm trying to translate a Verilog program into VHDL and have stumbled across a
I'm trying to translate the following slugify method from PHP to C#: http://snipplr.com/view/22741/slugify-a-string-in-php/ Edit:
I'm trying to translate the following C# example, which constructs an IronPython module, to
I was trying to translate the following Haskell code to C++: data List t

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.