Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6188301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:12:32+00:00 2026-05-24T02:12:32+00:00

I have a repeater on my page which I use to display a list

  • 0

I have a repeater on my page which I use to display a list of search results. My issue is that the page keeps throwing me a

Parser Error Message: The server tag is not well formed.

error because the repeater has no datasource

Repeater:

<asp:Repeater runat="server" ID="rptSearchResults" >
    <HeaderTemplate>
        <h3>Search results</h3>
    </HeaderTemplate>
    <ItemTemplate>
        <table>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblTitle" Text="<%# Eval("title")%>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblAdress" Text="<%# Eval("adress")%>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblZipcode" Text="<%# Eval("zipcode")%>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblCity" Text="<%# Eval("city")%>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblType" Text="<%# Eval("type")%>"></asp:Label>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:Repeater>

Above this repeater is a form where users can type in search words for primarily title, adress, zipcode, city and type. The repeater isn’t supposed to fill out untill the user clicks the button which triggers the search and thus adds a datasource to the repeater.

Is there a way to make it work like I want it to?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:12:32+00:00Added an answer on May 24, 2026 at 2:12 am

    I don’t think the lack of a data source is the problem – it should be fine. The error says “The server tag is not well formed.” – this means there’s a problem with the markup. A problem with an empty data source would cause a NullReferenceException or something similar. So, maybe the problem is your Label elements – try changing the Text attributes from this:

    Text="<%# Eval("type")%>"
    

    to this:

    Text='<%# Eval("type")%>'
    

    I think all the double quotes will confuse ASP.Net. Use a combination of single and double quotes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.net repeater on my page which creates a load of listitems.
Say I have this repeater which makes use of a public function called Test
On page load, I have my DataTable results available which I need to pass
I have a repeater on my page which I wan to run a piece
I have a repeater with which I want to use to show a user
I have an ASP.Net hosted website which displays a list of results as a
Okay, my dilemma is this. I have an admin page that I use to
I have a Repeater control in my aspx page: <asp:Repeater ID=repeater runat=server EnableViewState=false> <ItemTemplate>
Morning stackoverflow, I have a repeater, with the following code in my aspx page;
I have a asp.net repeater control in a aspx page, with runat=server and an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.