Setting properties of a page in the aspx file without using code blocks

A

Achim Domma

Hi,

I have an aspx file which inherits from a class "MyPageClass" which
has a property "MyProperty". I want to set MyProperty in the aspx
file, but code blocks are not allowed in my environment (sharepoint).
I tried something like

<% @Page ... MyProperty="abc" %>

which does not work. If code blocks would be allowed the following
would work:

<% MyProperty = "abc"; %>

Is there an alternativ syntax to set the property? I don't see a
reason why this should not be possible, because it's quite normal to
set properties of controls in the aspx page. So why not for the page
too?

regards,
Achim
 

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
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top