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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:19:49+00:00 2026-05-14T18:19:49+00:00

How to access to Label5 from behind page file(default.aspx.cs)? <ItemTemplate> <asp:Image ID=Image1 runat=server />

  • 0

How to access to Label5 from behind page file(default.aspx.cs)?

         <ItemTemplate>

             <asp:Image ID="Image1" runat="server" />
        <asp:HyperLink ID="HyperLink1" CssClass="nav_url_odg" runat="server"><%# Eval("user") %></asp:HyperLink> <span class="odgovorio">je odgovorio:</span><br />
       <div>
           <asp:Label ID="Label5" runat="server" Text=""></asp:Label></div>
    </div>
    <br /></div> </div>
      </ItemTemplate>

        </asp:DataList>
  • 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-14T18:19:49+00:00Added an answer on May 14, 2026 at 6:19 pm

    Add an OnItemDataBound event handler to your markup for the DataList:

    <asp:DataList runat="server" OnItemDataBound="datalist_ItemDataBound">
    

    Then in your code behind you can to check the item type, and find the label control by its id:

        void datalist_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item)
            {
                Label label5 = (Label)e.Item.FindControl("label5");
                // now you have access for each bound row
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

cannot access asp.net server side control from jquery Label <label id=lblClanName runat=server>Something here</label> Jquery
I have a label control in my Page <asp:Label ID=EmpType runat=server Text= ></asp:Label> I
I am using an AJAX Toolkit AsyncFileUpload as follows... <p> <asp:Label runat=server Text=Choose a
Is there any way i can access the page object from within the global.asax
it is very easy to access master page control from content page like protected
I'm trying to access an XML file within a jar file, from a separate
i am trying access an asp label within an asp repeater from my code
If I have a label and a textbox and a label <asp:Label ID=Label1 runat=server
Using Access 2003 I want to get a table value from the two databases
I want to use this Swing snippet to create an image from a text

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.