<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomUserControlExample2.aspx.cs" Inherits="UserControls.CustomUserControlExample2" %>

 

<%@ Register src="ProductDisplay.ascx" tagname="ProductDisplay" 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 id="Head1" runat="server">

    <title></title>

</head>

<body bgcolor="#9999ff">

 

    <h3>This example demonstrates using an ASCX Custom User Control.</h3>

 

    <form id="form1" runat="server">

    <div>

 

        <asp:DropDownList ID="ddlProducts" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProducts_SelectedIndexChanged" />

        

        <br />

        <br />

 

        <uc1:ProductDisplay ID="pdProduct" runat="server" Visible="False" />

 

    </div>

   

    </form>

</body>

</html>