Pass values from MasterPage UserControl to child ASPX Page

Posted by Leekey on Stack Overflow See other posts from Stack Overflow or by Leekey
Published on 2010-05-04T20:33:21Z Indexed on 2010/05/04 23:28 UTC
Read the original article Hit count: 346

Filed under:
|
|

Hi,

Senario: Masterpage with a UserControl and a child ASPX page

In the past when using this senario I've used an Interface as a way to pass a value from the UserControl (embedded in a master page) to the masterpage code behind then consume that value in the child aspx page.

My question is now that asp.net 4 have arrived is this still a good way to achieve this or is there another or perhaps better way to do it? I've read somewhere that perhaps "delegates" is perhaps another route to take.

Any help much appreciated Lk

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-ajax