Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
804
Server side events
posted

How to put a method to an event on server side?

I create dynamicly a webDialoagWindow, but i want to put some method to the disposed event.

wb.Disposed =

"recuperationChangementInterface";

I know this line is wrong, but how can i do it?

thx

Gabriel Deschênes

 

  • 28407
    posted

    HI ,

     the Visual Studio Designer will help you do this.

     

    Type this

     WebDialogWindow1.Disposed +=

    Then Intellisense takes over - and hit the tab key two times - the event gets created for you.

     protected void Page_Load(object sender, EventArgs e)
        {
            WebDialogWindow1.Disposed += new EventHandler(WebDialogWindow1_Disposed);
        }

        void WebDialogWindow1_Disposed(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }