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

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>Dynamic Data Display</title>

</head>

<body bgcolor="#ccffff">

   

    <h3>This example demonstrates displaying data dynamically without a GridView control. </h3>

   

    <h4>The table in this example contains a server-side textbox control that contains data for a record.

        The textbox control is created programmatically at run-time, assigned values, and

        rendered into an HTML string that is put into a table row's cell.</h4>

 

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

       

         <asp:Label ID="lblSelect" Text="Select a department:" runat="server" ForeColor="#0033CC" />

         <br />        

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

         <br /> <br />

         <div id="divDisplay" runat="Server"></div>

 

    </form>

</body>

</html>