HLRosenberger
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.TaborMo dalPopup" %>
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.TNCPMo dal" %>
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
<%@ Master Language="vb" AutoEventWireup="false" CodeFile="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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER