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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:08:45+00:00 2026-05-25T21:08:45+00:00

In my SQL Server table there is a column slno. (yes, it contains a

  • 0

In my SQL Server table there is a column slno. (yes, it contains a dot) that is working fine in SQL Server. However, <%#Eval("slno.")%> is giving an error:

DataBinding: ‘System.Data.DataRowView’ does not contain a property with the name ‘slno’.

How can this be solved? I can’t change column name in database: I am getting data from stored procedure so I cannot modify it.

<ItemTemplate> <%#Eval("slno.") %> </ItemTemplate>
  • 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-25T21:08:46+00:00Added an answer on May 25, 2026 at 9:08 pm

    use

    <%# ((DataRowView)Container.DataItem)["slno."] %>
    

    Alternatively use

    <%# DataBinder.Eval (Container.DataItem, "slno.") %>
    

    For MSDN reference see http://msdn.microsoft.com/en-us/library/4hx47hfe.aspx

    EDIT – Another option:

    <%# DataBinder.GetPropertyValue(Container.DataItem, "slno.") %>
    

    EDIT 2 – as per comments:

    AFAIK Eval handles the string as an expression which it evaluates using some rules – these rules have special handling for the dot…

    GetPropertyValue OTOH does not apply those rules (which means it is NOT a full replacement for Eval AFAIK) thus having the ability to handle cases where the dot handling of Eval leads to problems (like in this case).

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

Sidebar

Related Questions

I have a SQL Server table that contains postal addresses. In preparation for mailing,
System is: SQL Server 2008-R2 I have a table that one of its column
Hey guys, I have a column in an sql server table that is nvarchar(max).
I'm working with an existing SQL Server database, with a table column defined as
I have an sql server table with a timestamp column. Is there a way
I have a database table that uses Sql Server 2005's uniqueidentifier column. I know
I have a table in SQL Server but there is no column to show
In SQL Server, there's no way to create a temp table on the fly
Using SQL Server 2008, is there a way to allow inserts to a table
Is there an easy way to create a table in SQL Server (2005) from

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.