Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RaisePostBackEvent not firing
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
RaisePostBackEvent not firing
Miscellaneous
Thread ID:
00777227
Message ID:
00777227
Views:
116
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
Next
Reply
Map
View

Click here to load this message in the networking platform