Solved

what does server tag not well formed mean?

Posted on 2014-09-12
2
274 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Website development when using HTTPS API calls to get/put information 15 46
error email attachment VB2010 5 39
Automatic Image Uploading 9 82
QQ problem 22 24
Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

832 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