Page and custom web control

  • Thread starter Thread starter Plamen Hristov
  • Start date Start date
P

Plamen Hristov

hi,

i played a little bit with vs 2005 b1 and I tryied to run the following
scenario:
a page (using master page - just for info) and a custom web control in it
which has only 1 buton.
the questions is how I can notify the page when the buton of the web control
is pusshed. it works with Session but it takes 2 round trips in order to
update info on the page

any ideas?

thanks,
Plamen
 
You can add an event to the user control and fire the event when the
button is pushed. Anyone interested (master page or web form) can
subscribe to the event and handle it.

Here is an example (albeit not with a master page, the concept is the
same):

http://odetocode.com/Articles/94.aspx
 
Back
Top