Author: nagaasp | Posted on: 10/9/2010 12:05:02 PM | Views : 420

 Hi,
   In a page , when I click a button 'showDialog' I am loading the user control dynamically in a dialog.  I am linking to the event in the user control as explained below. The parent page is not receiving this event.
  ex: (This is in the page class)
    Button_Click(){
         UseControl1 gc = dlg.LoadContent(:\UserControl1.csx);
        gc.CausePostback += new EventHandler(execute_CausePostback());
}
execute_CausePostback(){
   // I am trying to update the details grid in parent page
}
In UserControl class after clicking the submit button
Submit_Click(){
    saveRecord();
  raise event CausePostBack();
}
Any help is appreciated.
 
 
...

Go to the complete details ...