Context

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?
 
S

Shelly

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
 
S

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top