Click here to Skip to main content
15,891,864 members
Articles / Web Development / HTML

The AnywherePlaceHolder. Part 3. The AnywhereValidationSummaryPlaceHolder

Rate me:
Please Sign up or sign in to vote.
3.92/5 (4 votes)
8 Sep 20054 min read 29.6K   385   25  
Eliminating the boundaries of frames. Writing your ASP.NET controls on any desired location in any frame.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Function.aspx.cs" Inherits="Function" %>
<%@ Register Namespace="DeKale.WebControls" TagPrefix="kale" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body bgcolor="aqua">
    <form id="form1" runat="server">
		<kale:AnywherePlaceHolder runat="server" ID="TitlePlaceHolder" DestinationControlId="Title" 
			DestinationFrame="parent" SourceFrame="FunctionFrame" RenderMethod="RenderInDestination">
			<asp:image runat="server" src="images/myimage.gif" />Function page dynamic title
		</kale:AnywherePlaceHolder>
		
		<div runat="server">
			<asp:TextBox runat="server" ID="TextBox1" Text="i386" />
			<asp:CompareValidator runat="server" ControlToValidate="TextBox1" Operator="DataTypeCheck" 
			Type="Integer" Text="Field is not of type integer" ErrorMessage="Incorrect datatype in form" />
			<br />
			<asp:TextBox runat="server" ID="TextBox2" />
			<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
			ControlToValidate="TextBox2" Text="Field is required" ErrorMessage="Required field missing" />
			<br />
			<asp:TextBox runat="server" ID="TextBox3" />
			<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
			ControlToValidate="TextBox3" Text="Field is required" ErrorMessage="Required field missing" />
			<br />
			<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
			<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
		</div>
		
		<kale:AnywhereValidationSummaryPlaceHolder runat="server" ID="AnywhereValidationSummaryPlaceHolder" 
			DestinationControlId="Summary" DestinationFrame="parent" SourceFrame="FunctionFrame" 
			RenderMethod="RenderInDestination" DisplayMode="List" />
    
		<kale:AnywherePlaceHolder runat="server" ID="ButtonPlaceHolder" DestinationControlId="Buttons" 
			DestinationFrame="parent" SourceFrame="FunctionFrame" RenderMethod="RenderInDestination">
		</kale:AnywherePlaceHolder>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Netherlands Netherlands
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions