Files
mono/mcs/class/System.Web/Test/mainsoft/NunitWebResources/TemplateControlParsingTest.aspx
T
Marek Habersack 4e78b2f2ff 2008-10-09 Marek Habersack <[email protected]>
* WebTest.cs: made the Host property internal. It is used to
	access the host's application domain when necessary in some
	tests.

	* MyTemplateControls.cs: added

2008-10-09  Marek Habersack  <[email protected]>

	* NunitWebResources/TemplateControlParsingTest.aspx: added

2008-10-09  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: compile the file on 1.1 as well.
	Added a test for template parsing in compound controls.

svn path=/trunk/mcs/; revision=115324
2008-10-09 10:24:45 +00:00

24 lines
864 B
Plaintext

<%@ Page Language="C#" %>
<%@ Register Assembly="System.Web_test" Namespace="MyTemplateControls" TagPrefix="mc" %>
<script runat="server">
void TemplateControl2_ItemCreated (TestTemplateControl sender, TestTemplateItemEventArgs args)
{
PlaceHolder ph = args.Item.FindControl ("PlaceHolder1") as PlaceHolder;
if (ph == null)
throw new InvalidOperationException ("Missing PlaceHolder1 - template children processing is broken in TemplateCompiler.");
}
</script>
<html><head><title>Templates test</title></head>
<body>
<form runat="server">
<mc:TestTemplateControl runat="server" id="templateControl2" OnItemCreated="TemplateControl2_ItemCreated">
<Container>
<ItemTemplate>
<asp:PlaceHolder runat="server" id="PlaceHolder1"/>
</ItemTemplate>
</Container>
</mc:TestTemplateControl>
</form>
</body>
</html>