Solved

what does server tag not well formed mean?

Posted on 2014-09-12
2
288 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
[X]
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
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
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.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

730 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