New test.
[mono.git] / mcs / class / System.Web / Test / mainsoft / MainsoftWebApp20 / UrlProperty.ascx.cs
1 using System;\r
2 using System.Configuration;\r
3 using System.Collections;\r
4 using System.Web;\r
5 using System.Web.Security;\r
6 using System.Web.UI;\r
7 using System.Web.UI.WebControls;\r
8 using System.Web.UI.HtmlControls;\r
9 \r
10 [Themeable(true)]\r
11 public partial class UrlPropertyControl : System.Web.UI.UserControl\r
12 {\r
13         string property1;\r
14         string urlProperty2;\r
15 \r
16         [Themeable(true)]\r
17         public string Property1\r
18         {\r
19                 get { return property1; }\r
20                 set { property1 = value; }\r
21         }\r
22 \r
23         [Themeable(true)]\r
24         [UrlProperty]\r
25         public string UrlProperty2\r
26         {\r
27                 get { return urlProperty2; }\r
28                 set { urlProperty2 = value; }\r
29         }\r
30 \r
31         protected override void OnLoad (EventArgs e)\r
32         {\r
33                 ((Literal)FindControl("Property1Literal")).Text = Property1;\r
34                 ((Literal) FindControl ("UrlProperty2Literal")).Text = UrlProperty2;\r
35         }\r
36 }\r