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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:58:02+00:00 2026-05-25T02:58:02+00:00

I have been just using what it wants for years and have never questioned

  • 0

I have been just using what it wants for years and have never questioned it, however, can someone tell me why I have to use single quote vs double quotes in order to be a well formed tag?

Error Msg:
“The server tag is not well formed.”

What are the rules for the single quote enforcement(ie: within a template…etc)?

 //not well formed
 <uc1:blaControl ID="bla" runat="server" Prop1="<%# Eval("Data") %>" />

vs

 //well formed
 <uc1:blaControl ID="bla" runat="server" Prop1='<%# Eval("Data") %>' />
 <asp:Literal ID="ControlTitle" runat="server" Text="<%# Title %>" />
 <asp:Literal ID="ControlTitle" runat="server" Text='<%# Title %>' />
  • 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-25T02:58:02+00:00Added an answer on May 25, 2026 at 2:58 am

    Well the markup in the first is not valid SGML. The " inside the attribute are confused with the surrounding quotes so it’s not clear where the attribute begins an ends. To get around this you need to keep them different.

    // valid and will compile
    <uc1:blaControl ID="bla" runat="server" Prop1='<%# Eval("Data") %>' />
    

    The reason you can’t alternatively use the following syntax which would be valid SGML, is that the C# inside the outer quotes becomes invalid and won’t compile (single quotes denote a char).

     // valid but won't compile
     <uc1:blaControl ID="bla" runat="server" Prop1="<%# Eval('Data') %>" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using Hibernate for years and never have a problem with it, but
I have been using CI just fine using the MySQL driver. I want to
I'm currently using the hilo id generator for my classes but have just been
Maybe I just don't know enough about structs and have been using them blindly
I just started to work on informix.( I have been using mysql all my
I am just two days old in using JMeter . I have been asked
I'm learning scheme and until now have been using guile. I'm really just learning
I have just been involved in writing an application that does not use Doctype's
I have been using a shopping cart script for a few years now and
I have been using gvim at work for a year or so, just at

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.