DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 07 Aug 2007 02:54:56 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Achim Domma


Setting properties of a page in the aspx file without using code blocks   
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
Date:Tue, 07 Aug 2007 02:54:56 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us