Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

what does server tag not well formed mean?

Posted on 2014-09-12
2
281 Views
Last Modified: 2014-09-19
<ItemTemplate>

              <asp:Label runat="server" ID="ID" Text="<%#Eval("ID")%>" />

            </ItemTemplate>

GET ERROR: The server tag is not well formed.

does someone see why?  Tried both single and double quotes for TEXT

thanks

gair
0
Comment
Question by:javagair
2 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 250 total points
ID: 40320274
<asp:Label runat="server" ID="ID" Text="<%#Eval('ID')%>" />
0
 
LVL 35

Assisted Solution

by:Robert Schutt
Robert Schutt earned 250 total points
ID: 40320281
Well, the double quotes inside as well as outside the attribute are indeed a problem in this situation but I just tried it with single quotes and that works fine for me:
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="server=.\SQLXE2012;Database=ee;Trusted_Connection=Yes;"
            SelectCommand="SELECT * FROM pix"
            />
        <ul class="mylist">
            <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                    <li>
                        <asp:Label runat="server" ID="ID" Text='<%#Eval("ID")%>' />
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    </form>

Open in new window

capture
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

809 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