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 149301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:06:33+00:00 2026-05-11T09:06:33+00:00

I have som text-content that I want to be able to change without recompiling

  • 0

I have som text-content that I want to be able to change without recompiling my project. I have created a resource file and put some text-content in it.

I was under the impression that I could write <%$ Resources:mapLink2 %> wherever I wanted but that doesn’t seem to be the case.

The following code in my ascx gives me an error:

<a href='<%$ Resources:mapLink2 %>'><img class='2 selectableImg' src='map_2.gif' /></a> 

I only got the error message in Swedish (sorry about that) but I think it might give you some hints of what is going on:

Literala uttryck som ” är inte tillåtna. Använd i stället. vid System.Web.UI.TemplateParser.ProcessError(String message) vid System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) vid System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

But if I do:

<a href='<asp:literal runat='server' Text='<%$ Resources:mapLink2 %>'/>'><img class='2 selectableImg' src='map_2.gif' /></a> 

it all works out allright.

How come the first version doesn’t work? Aren’t resource files supposed to work like I want them to in example 1?

  • 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. 2026-05-11T09:06:33+00:00Added an answer on May 11, 2026 at 9:06 am

    Maybe this only works with server controls? Have you tried setting runat=’server’ on the a from your first example?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to fetch the content of an text file and I have manage
I have a very long price file from my wholesaler that I have som
I have created a class that I've been using as the storage for all
I have a UITextView for the user to enter som text. When the UITextView
I am new to JQuery and need som direction. I have created a page
I have a comma delimited text file. The 5th field on each line contains
I have a listView and a onClickListener that onClick do som things and it
I'm revisiting som old code of mine and have stumbled upon a method for
I wuld like to do som automatic tagging of incoming text in our system
I have some code that will trigger Code Analysis warning CA1063: CA1063 : Microsoft.Design

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.