Can we access an enum which has been defined in the master page. I read about the master page on my own blog.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean an actual
enum, defining it elsewhere is a better option, but the same casting below works to get at it as well.If you want to access the property that is an
enumthen cast theMasterproperty of your page to your master page’s type. Like this:Edit:
Almost forgot, you can also have the
Masterproperty on your page already behave as this type by using the @MasterType directive in your aspx markup.