<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="rw_uc_validation_Default" %>
<%@ Register Src="sampleControl.ascx" TagName="Sample" TagPrefix="UC1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
	<asp:ScriptManager ID="Scriptmanager1" runat="server" />
	<telerik:RadWindow ID="sample" runat="server"
        Title="My Sample" Modal="true" Width="800px" Height ="720px"  >
        <ContentTemplate>
            <UC1:Sample runat="server" ID="sampleControl" />
        </ContentTemplate>
    </telerik:RadWindow>
	<asp:Button ID="Button1" Text="open the RadWindow" OnClientClick="openRw(); return false;" runat="server" />
	<script type="text/javascript">
		function openRw()
		{
			$find("<%=sample.ClientID %>").show();
		}
	</script>
    </form>
</body>
</html>
