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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:54:21+00:00 2026-05-31T18:54:21+00:00

I am trying to add a table in aspx page and need to have

  • 0

I am trying to add a table in aspx page and need to have access to the table cells in .cs file. Created AspNet:Table with some rows and cells but keep getting ‘not a valid identifier’ error and can’t see why:

<asp:Table runat="server" ID="tblStatus" Width="920" CellPadding="0" CellSpacing="0">
    <asp:TableRow>
        <asp:TableCell runat="server" ID="LM6-D7-L"></asp:TableCell>

At the table cell row, I get:

Build (web): 'LM6-D7-L' is not a valid identifier.
Build (web): Literal content ('</asp:TableCell>') is not allowed within a 'System.Web.UI.WebControls.TableCellCollection'.

This happens for every row in the table.

  • 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-31T18:54:23+00:00Added an answer on May 31, 2026 at 6:54 pm

    ASP.NET doesn’t accept an identifiers with dashes in. You have to change the dashes to underscores or something else:

     <asp:TableCell runat="server" ID="LM6_D7_L"></asp:TableCell> 
    

    Or:

     <asp:TableCell runat="server" ID="LM6D7L"></asp:TableCell> 
    

    Etc.

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

Sidebar

Related Questions

I have created a Table Layout named table and I am trying to add
I'm trying to add images to table cells in a grouped UITableView but the
I´m trying to add a list to a table cell but there are no
i'm trying to add a foreign key to my table, but when i try
Here in the below fiddle, i am trying to add and remove table rows
I am trying to add a table row to a table using .after() but
I'm trying to add table rows programmatically following the code here /* Find Tablelayout
I am trying to add following constraint to my DB2 table but it gives
I have an SQL table called tbl, im trying to add the columns A,
I am trying to add a column into mysql table using this query but

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.