Menu

Master Page implementation in asp.net

Help
shailesh
2009-03-16
2013-04-26
  • shailesh

    shailesh - 2009-03-16

    whether, MVC# can implement, Master Page?
    i want one master page in asp.net and few webforms, uses this master page.
    so that look and feel of all pages remains same  also no need to write same code again and again.

     
    • OVZH

      OVZH - 2009-03-17

      Hello,

      Take a look at the "Reworked ASP.NET MVC Store" example in the Examples subfolder of the MVC# package. The views there are implemented based on a common master page.

      Regards,
      --
      Oleg Zhukov

       
    • shailesh

      shailesh - 2009-03-23

      in this case, i cannot use task, controller object in master page source code.

       
      • OVZH

        OVZH - 2009-03-24

        Ok, I understand your problem. Try these possible solutions:

        1) Search for API to access the current page from the master page's code. If there is no such..

        2) In the view initialization code try to access the corresponding master page instance and to associate it to the controller.

        See if any of these helps...

         
    • Yitzhak Khabinsky

      Hi shailesh,

      We are facing the same scenario like you.

      We have a master page with the multiple navigation links.
      Different link (URL) sets belong to different MVC# Tasks.
      Somehow,  we need to be able to StartTask() from the master page and navigate to a view corresponding to a particular link (URL).

      So, mulltiple MVC# Tasks and ASP.NET master pages holding navigation links is a big question mark.
      What is the outcome of your investigation?
      Is it possible to implement it in MVC#?

      Regards,
      Yitzhak

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.