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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:54:02+00:00 2026-05-13T05:54:02+00:00

I have a listview and a label in the ItemTemplate, i have set the

  • 0

I have a listview and a label in the ItemTemplate, i have set the text to

<asp:Label id="GreenDate" runat="server" Text='<%# Eval("NewsDate") %>'></asp:Label>

but i want to manipulate the value returned by datasource,which is Eval(“NewsDate”) and show the new value in the label.
in which event i can access this value and how?

  • 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-13T05:54:02+00:00Added an answer on May 13, 2026 at 5:54 am

    Use the following Event: ItemDataBound, and use DataBinder.Eval(e.Item.DataItem, "NewsDate") which is equivalent to this <%# Eval("NewsDate") %>.

    Here’s the syntax to get the Label Control:

    Label lbl = (Label) Item.Controls.FindControlByID("GreenDate"); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a item in a listView control like this <asp:Label ID=Label2 runat=server Text='<%#Eval(Open)
I have a ListView with an ItemTemplate item as below: <asp:Label runat=server ID=lblChangeOrders><%#Eval(sum)%></asp:Label> What
I have an app using ListView not unlike Explorer does, but when I set
In my codebehind I want the set the text of a label. Here is
<ItemTemplate> <tr bgcolor=#efefef> <td width=10%> <asp:LinkButton ID=btnShowRoles runat=server> <asp:Image ID=viewRoles ImageUrl=/images/pointer-down.gif runat=server /></asp:LinkButton> </td>
I have a listview like this : <telerik:RadListView ID=rlv_available_sys runat=server ItemPlaceholderID=sys_holder DataKeyNames=process_id OnItemDataBound=rlv_available_sys_ItemDataBound> <ItemTemplate>
I have ListView that has the following EditItemTemplate: <EditItemTemplate> <tr style=> <td> <asp:LinkButton ID=UpdateButton
I have a ListView with Horizontal WrapPanel as its ItemsPanelTemplate. I want to get
I have a ListView in WPF application with a CheckBox . I want to
I have a WPF ListView who's view is set to a GridView. Rows in

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.