[thelist] (asp.net) Custom Events on user controls?

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Feb 17 16:07:10 CST 2006


Couldn't you just check Page.IsPostBack from the user control?  Or are you looking for a specific event that triggered postback?

Another approach would be to create public properties on the UC that map to the form fields in question; you could then read these properties from the containing page. 

HTH,

Peter

 From: "Tab Alleman" talleman at Lumpsum.com

I've created a user control that has some form fields on it, however, it doesn't have a submit button. The submit button is on the outer page that contains the user control.

Is there a standard way to have the outer page fire a subroutine in the user control so that when the submit button is clicked, the user control is aware of it and saves the data in its form fields?



More information about the thelist mailing list