Author: jigirene | Posted on: 12/11/2009 6:46:57 PM | Views : 322

On my surveys.aspx page I have 5 user controls (containing different types of questions i.e. yes/no, multiple choice, open answer) that are dynamically loaded depending upon a formview.  I have no problem loading these controls.  The problem arises when I try to notify the aspx page that an event was triggered on the user control. (I need the parent page to recognize when an answer on one of the user controls has changed so it can update the database.) I can't for the life of me figure out how to pass the selection changed event to the parent page.  Please help me.
Here is the code-behind of one of my user controls, followed by the applicable code of my parent page.
DQYesNo.ascx:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class DQYesNo : System.Web.UI.UserControl { public delegate string An ...

Go to the complete details ...