Solved

what does server tag not well formed mean?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now