mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* 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
24 lines
864 B
Plaintext
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>
|