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

  • Home
  • SEARCH
  • 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 5840309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:43:26+00:00 2026-05-22T11:43:26+00:00

Is there any advantage/downfalls between using the inline write tag instead of the resource

  • 0

Is there any advantage/downfalls between using the inline write tag instead of the resource tag? Example:

<%=Resources.Site.SampleString %>

The resources tag (expression tag) as seen in any MSDN example:

<asp:Literal id="Literal1" runat="server" text="<%$ Resources:Site, SampleString %>" />

I find the first option far easier to use, and it has IntelliSense, but maybe it won’t function the same?

  • 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-22T11:43:27+00:00Added an answer on May 22, 2026 at 11:43 am

    These methods will function exactly the same. The latter simply calls first one; there is a reason why strongly-typed resources access code is being generated in the background. Therefore you can use whatever method you please.

    By the way, there is also another way – by using meta:resourcekey attribute. So you should be able to write:

    <asp:Literal id="Literal1" runat="server"
                 meta:resourcekey="SampleString" text="Default one" />
    

    and it all should work exactly the same.

    EDIT on implicit Localization.

    What I forgot to mention, is that with meta:resourcekey certain conditions have to be met. The conditions are:

    • Values are taken from App_LocalResources, therefore related resource file need to exist
    • Related resource file name must be pagename.resx, for example: Default.aspx.resx, Default.aspx.es.resx
    • The resource file must contain keys in form of resourcekey.propertyname, for example SampleString.Text, SampleString.ID (although I wouldn’t localize control ID’s)
    • Because of how resources are generated, the key mentioned above must exist in invariant resource file (Default.aspx.resx), or it won’t be localized.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any advantage to using __construct() instead of the class's name for a
Is there any advantage of using java.util.concurrent.CountdownLatch instead of java.util.concurrent.Semaphore ? As far as
Is there any advantage over using a class over a struct in cases such
Is there any advantage in using one over the other? Should I use the
Is there any performance advantage to using lists over dictionaries over tuples in Python?
Are there any advantages compiling for .NET Framework 3.5 instead of 2.0? For example
Is there any advantage for using visitor pattern in a recursive scenario? If so
Is there any advantage of using int vs varbinary for storing bit masks in
Is there any advantage to conditionally defining functions in PHP? For example, if I
Is there any advantage to writing a PHP conditional like this: if ($variable !=

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.