Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RaisePostBackEvent not firing
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
RaisePostBackEvent not firing
Divers
Thread ID:
00777227
Message ID:
00777227
Vues:
114
I've got a custom ASP.NET control that needs to know when a postback event has occurred. Based on the MSDN docs, I thought all I'd need to do was to implement the IPostBackEventHandler interface, and add add a RaisePostBackEvent() method to my custom control. I added some dummy code to RaisePostBackEvent so I could get the debugger to stop in here. Then I added a button to the same form where this custom control is being used (which should do a postback when clicked). When I click on the button, a postback is occurring, but the debugger isn't stopping at RaisePostBackEvent(). Is there something else that needs to be done to capture this event in my custom control?

My class definition looks like:
using System.Web.UI.WebControls;

public class ListBase : WebControl, IPostBackEventHandler 
RaisePostBackEvent() looks like:
public void RaisePostBackEvent(string eventArgument) 
{
	string sample;
        // Debugger is set to stop on the next line.
	sample = "";
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform