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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:52:54+00:00 2026-05-26T23:52:54+00:00

I do register a method for the ItemDataBound – Event like this: protected void

  • 0

I do register a method for the ItemDataBound – Event like this:

protected void Page_Init(object sender, System.EventArgs e)
{
    MyRepeater.ItemDataBound += MyRepeater_ItemDataBound;
    // ...
}

protected void MyRepeater_ItemDataBound(object sender, 
    System.Web.UI.WebControls.RepeaterItemEventArgs e)
{
    // ...
}

Like this, nothing is triggered, the method is never executed.
When I register the method in code-before like

<asp:Repeater ID="MyRepeater" runat="server" 
    OnItemDataBound="MyRepeater_ItemDataBound">

it does work. Why doesn’t the former version work?

Thx for any tipps sl3dg3

  • 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-26T23:52:54+00:00Added an answer on May 26, 2026 at 11:52 pm

    You might be missing AutoEventWireup=true in Page header in aspx file.

    Edit:
    If buttons handlers do work, perhaps it’s problem with databinging – are you sure you are calling DataBind on MyRepeater or any of it’s parent control? If you are calling DataBind manually, does it depend on Page.IsPostBack on your page?

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

Sidebar

Related Questions

In C#, I find myself occasionally wanting to register a method for an event
This is what I am currently using for registration: def register(request): if request.method ==
Some code typedef void (*EventHandler) (EventObject* sender, EventArgs* args, void* closure); class Control {
this is my register method on controller to register a new user. function register()
Shouldn't this test pass: [TestMethod] public void derived_message_subscription() { bool handled = false; Messenger.Default.Register<GenericMessage<baseClass>>(this,
I have to register an object instance into a container. I can't use the
We have to have a register method available via web service that is written
This method works great and generates only 1 query (utilizing .Includes() to eager load).
I have a method register() that takes a lot of time to complete. So
I added a switch case above the register() method and I am getting Fatal

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.