Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Code file for Master Page

I have two VS WEB site projects.  The first, I have a master page that has a code file.    I have this directive in the .master:

<%@ Master Language="vb" AutoEventWireup="false"  CodeFile="TaborModalPopup.master.vb" Inherits="Tabor.UI.TaborModalPopup" %>

And this work fine.  In another project I need to do the same thing - need a master page with a code file.   I have this directive in the .master:

<%@ Master Language="vb" AutoEventWireup="false"  CodeFile="TNCPModal.master.vb" Inherits="MyApp1.UI.TNCPModal" %>

It's the same directive, just the namespace and name of the page are different.

The second one gives me this error:  "Context" is not a member of "MyApp1.UI.TNCPModal".   I have attached the .master and .master.vb file for both.   I don't get it - why one works and one does not.

Thanks.
TNCPModal.master
TNCPModal.master.vb
TaborModalPopup.master
TaborModalPopup.master.vb
ASKER CERTIFIED SOLUTION
Avatar of Mrunal
Mrunal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HLRosenberger

ASKER

Thanks.  that worked!