Solved

what does server tag not well formed mean?

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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…

691 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