Context

  • Thread starter Thread starter Shelly
  • Start date Start date
S

Shelly

I am in the process of learning aspx.net. I have programmed for about five
years in php for the back end. I am trying to replicate a recent web site
that I did, but using aspx this time (for practice only). I have run into a
problem.

I created a new master page in Visual Web Developer using the template. I
immedediately got a message:

'Context' is not a member of 'MasterPage'.

I had saved the file as "mynewname.master".

Any idea what this is and how I can get rid of it?
 
Shelly said:
I am in the process of learning aspx.net. I have programmed for about five
years in php for the back end. I am trying to replicate a recent web site
that I did, but using aspx this time (for practice only). I have run into
a problem.

I created a new master page in Visual Web Developer using the template. I
immedediately got a message:

'Context' is not a member of 'MasterPage'.

I had saved the file as "mynewname.master".

Any idea what this is and how I can get rid of it?
More info:

I did not do ANYTHING to the code. All I did was create one and save it
with a name.master. The first line is:

<% Master Language="VB" CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>

Well, folks, this newbie just solved the problem. What I did was copy
MasterPage.master.vb and pasted it to the file as I named it. Then I
changed the line MasterPage to the name I chose in the first line.

THIS SHOULD BE DONE AUTOMATICALLY when you save the file as a new name after
creating it from the template. Note that I never saved the master under the
default name -- but it is still there.

Can someone explain this to me?

Shelly
 
I spoke too soon. The messages went away went I made that change, but then
when I turned back to look after responding to my previous post, they were
back.
 
Back
Top