K
Kirk
I have been reading Scott Allen's article on Master Pages (http://
odetocode.com/Articles/450.aspx) but I am having problems
understanding a concept. Specifically, I have created a property
(called "CurFlag") on my master page that can be accessed from content
pages, but not from separate code modules.
I tried doing something like this in my VB code module:
Dim myMaster As MasterPage = CType(ProjectMgmt.Master,
MasterPage)
myMaster.CurFlag = "value"
....but this just gets me an "Reference to a non-shared member requires
an object reference" error on the first line. Forgive my ignorance,
but is my syntax correct, or do I need to add something additional to
the master page so that my module "sees" this master page?
I would appreciate any suggestions.
Thank you.
odetocode.com/Articles/450.aspx) but I am having problems
understanding a concept. Specifically, I have created a property
(called "CurFlag") on my master page that can be accessed from content
pages, but not from separate code modules.
I tried doing something like this in my VB code module:
Dim myMaster As MasterPage = CType(ProjectMgmt.Master,
MasterPage)
myMaster.CurFlag = "value"
....but this just gets me an "Reference to a non-shared member requires
an object reference" error on the first line. Forgive my ignorance,
but is my syntax correct, or do I need to add something additional to
the master page so that my module "sees" this master page?
I would appreciate any suggestions.
Thank you.