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 6323701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:34:10+00:00 2026-05-24T16:34:10+00:00

We have a standard asp.net web application and have used asp:PlaceHolders in multiple places.

  • 0

We have a standard asp.net web application and have used asp:PlaceHolders in multiple places. In some files we get this error message during runtime:

BC30311: Value of type ‘System.Web.UI.WebControls.PlaceHolder’ cannot
be converted to ‘System.Web.UI.HtmlControls.HtmlTableRow’.

Why?

If I remove the place holder the page renders just fine.

Here is the html (simplified version):

<table runat="server" id="tblExtradata" visible=true>               
  <asp:PlaceHolder ID="test" runat="server" Visible="true">
    <tr>
      <td>
        <asp:Label ID="lblExpenses" runat="server" Text="Expensesr"></asp:Label>
      </td>
    </tr>
  </asp:PlaceHolder>
</table>

Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420

  • 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-24T16:34:10+00:00Added an answer on May 24, 2026 at 4:34 pm

    Because you’re running the table at the server, it expects only table elements nested within. If you take the runat=”server out of the table, it should work fine.

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

Sidebar

Related Questions

I have a fairly standard ASP.Net web application which is used via mobile safari
I used to have a standard ASP.NET MVC 3 application that was Ninject-wired via
I have a standard template ASP.NET MVC 2 Web application solution, an empty (meaning
I have a asp.net mvc web application an it uses some favicon.ico. Now when
I am an asp.net web application developer and I always have used Enterprise Library
We have a web application written in ASP.NET for .NET 3.5, using standard web
I have standard ASP.NET 4 application. Inside this application there are also few razor
I have a standard ASP.NET 2.0 web page with a Delete button on it.
I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The
I have a basic asp.net webform that handles events via standard postback. On this

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.