Inheritance and page templates 2
-
Hi all. I am developping a website with a couple of pages and I have implemented a page template, that the other pages inherit from. However at some pages I would want to do the unorthodox thing to set values as in asp, <%=myvariable %>. I can not view this page in a browser, because of the inheritance it will not allow me to use <% %> blocks in the aspx-file. Is there a way to go around this or do I have to choose between inheritance and <% %>? Thanks /EnkelIk
-
Hi all. I am developping a website with a couple of pages and I have implemented a page template, that the other pages inherit from. However at some pages I would want to do the unorthodox thing to set values as in asp, <%=myvariable %>. I can not view this page in a browser, because of the inheritance it will not allow me to use <% %> blocks in the aspx-file. Is there a way to go around this or do I have to choose between inheritance and <% %>? Thanks /EnkelIk
What error are you getting? I have used
<%=%>
to get property data in my ASPX page with multiple inheritance. regards, Paul Watson Bluegrass South Africa Marc Clifton wrote: "organically fed captivity free regurgitated bee nectar" (honey) on dieting. Crikey! ain't life grand? -
What error are you getting? I have used
<%=%>
to get property data in my ASPX page with multiple inheritance. regards, Paul Watson Bluegrass South Africa Marc Clifton wrote: "organically fed captivity free regurgitated bee nectar" (honey) on dieting. Crikey! ain't life grand?Hm. Your right, <%= %> works so my description of the problem was not correct. The problem is when is try to do something like <% if(i>0) { %> <% } %> The error is "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). " I guess I will have to manage :), at least now I know <%= %> works! Thanks /EnkelIk