1
// Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.MonoRail
.Framework
.Views
.Aspx
17 using System
.Collections
;
19 using Page
=System
.Web
.UI
.Page
;
24 public class PageBase
: Page
26 private IControllerContext controllerContext
;
27 private FormHelper form
;
28 private UrlHelper url
;
29 private TextHelper text
;
32 /// Gets or sets the controller context.
34 /// <value>The controller context.</value>
35 public IControllerContext ControllerContext
37 get { return controllerContext; }
38 set { controllerContext = value; }
42 /// Gets the property bag.
44 /// <value>The property bag.</value>
45 public IDictionary PropertyBag
47 get { return controllerContext.PropertyBag; }
51 /// Gets or sets the form helper.
53 /// <value>The form helper.</value>
54 public FormHelper FormHelper
61 /// Gets or sets the URL.
63 /// <value>The URL.</value>
64 public UrlHelper UrlHelper
71 /// Gets or sets the text helper.
73 /// <value>The text helper.</value>
74 public TextHelper TextHelper