I have a master page and other views in me project. how can I inilialize the data items and controls (such as controls that set with a Viewbag and Viewdata) in master page.
when I call a Controlller in my project I hava to repeat the initoalize codes to prepare data to masterpage Items.
when I call a Controlller in my project I hava to repeat the initoalize codes to prepare data to masterpage Items.