asp.net - How to use common master page for C# and VB.NET WebForms sites -
the problem
i have 2 projects: 1 c# webforms application (child) based on .net 4.5 (visual studio 2012), second vb.net webforms app (parent) running .net 4.0 (visual studio 2010). need use master page parent project (including code behind , controls embedded in master), session state , authentication info in child.
what i've done
i think may possible creating virtual directory in parent site containing child project , linking parent masterpage directly. when tried it, i've got unresolved reference errors, i've tried adding parent dll referenced child project.
i suppose may possible have common authentication info , session state) when running 2 distinct sites under single domain, can handled virtual directory , session state stored in separate process or in sql. still, there problem master containing logic (mainly common layout/controls) i'm unable bind new project far. don't know , try next.
is there possibility glue 2 projects common master page template without rewriting 1 of part of another?
there isn't built in facility within asp. fact 1 in c# , 1 in vb.net doesn't matter though.
this might - there info towards bottom of page regarding sharing master pages.
http://odetocode.com/articles/450.aspx
hope helps....
Comments
Post a Comment