Hi Davids:
The MyString field isn't really 'global' in the sense that you still
need an instance of MP_master to access the field. Perhaps you want to
mark MyString with the static keyword and associate the field with the
type? i.e: MP_master.MyString
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 2 Mar 2005 16:24:57 -0000, "Davids" <db****@simnet.is> wrote:
I am not having any success, in my master.cs page I assign a variable to be
used within all other pages:
public partial class MP_master
{
public string MyString = "this string is global";
}
well accessing it from other pages brings a "CS0103: The name 'MyString'
does not exist in the current context
" error?