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

  • Home
  • SEARCH
  • 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 8378339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:54:32+00:00 2026-06-09T15:54:32+00:00

Event registered in aspx <asp:Repeater ID=StepRepeater OnItemDataBound=StepRepeater_ItemDataBound1 runat=server> Tried with AutoEventWireUp true & false

  • 0

Event registered in aspx

<asp:Repeater ID="StepRepeater" OnItemDataBound="StepRepeater_ItemDataBound1" runat="server">

Tried with AutoEventWireUp true & false

Here’s the method in the code behind:

    public void LoadSteps(Request request)
    {
        Repeater StepRepeater = new Repeater();

        StepRepeater.DataSource = request.Steps;
        StepRepeater.DataBind();
    }
    protected void StepRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
}

When stepping through, it just goes straight through “StepRepeater.DataBind();” without hitting the ItemDataBound event.

Please let me know if any additional information would help.

  • 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-06-09T15:54:33+00:00Added an answer on June 9, 2026 at 3:54 pm

    Your OnItemDataBound value doesn’t match your method name.

    OnItemDataBound="StepRepeater_ItemDataBound1"
    
    protected void StepRepeater_ItemDataBound
    

    Remove 1 from the end of OnItemDataBound or change your method name.


    Also as @Adil has stated, remove the new Repeater() line:

    Repeater StepRepeater = new Repeater();
    

    UPDATE: After reading your comment on another answer regarding adding the new Repeater() line to prevent a null reference error:

    Adding new Repeater() is going to create a new instance of a Repeater control, therefore not referencing the Repeater on your ASPX markup file.

    If you are receiving a null reference exception, you should check that your Inherits property in your @Page directive (usually the very top line of your ASPX file) matches the class in your .aspx.cs file, and that your CodeFile property matches your .aspx.cs filename.

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

Sidebar

Related Questions

Is it normal firebird server sends all registered event counts on raising any of
I've a user control registered in an aspx page On click event of a
I have an aspx page defined as follows: <html xmlns=http://www.w3.org/1999/xhtml> <head runat=server> <title></title> <script
Which is the best way to registered event for example if I wanto to
If I have an application with only a few event handlers registered (and the
I need to find which event handlers are registered over an object. For example:
I am using asp.net (3.5). I have GridView and I need to use Drag&Drop
I have routes that are being registered from the database into an asp.net website
I was reading the following blogs about ASP.Net Async pages http://msdn.microsoft.com/en-us/magazine/cc163725.aspx http://world.episerver.com/Blogs/Magnus-Rahl/Dates/2012/1/Async-Pages-part-3-Async-Pages-with-databinding-and-events/ And a
I have a ASP.NET page with 2 user controls registered. The first one has

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.