Click here to Skip to main content
15,881,812 members
Articles / Programming Languages / SQL

.NET Dynamic Control (Label, Text Box and Drop Down) Creation

Rate me:
Please Sign up or sign in to vote.
4.73/5 (10 votes)
4 Jul 2011CPOL3 min read 60.6K   2.4K   38  
.NET Dynamic Control Creation
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="MDMReferanceDataViwer.SiteMaster" %>



<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
 
    <link href= "Styles/mvcMasterPage.css" rel="Stylesheet" type="text/css" />

    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <div>
        <div>
            <form id="form2" bocolor="white" runat="server">

            <asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager>
            <div>
                <table id="first_row" cellpadding="0" cellspacing="0" width="100%" >
                    <tr>
                        <td align="left">
                            <!-- DATE TIME USER CONTROL -->
                            
                        </td>
                        <td align="right">
                            <table cellpadding="0" cellspacing="3">
                                <tr>
                                   
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="MiddleTable">
                <table class="first_row" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <!-- Agility Branding Logo --->
                        <td width="25%" class="header_main" >
                        
                        Dynamic Control Creation - Sample 
                        <td valign="top">
                        </td>
                    </tr>
                </table>
            </div>
          <div>
                <table id="botton_row" cellpadding="0" cellspacing="0" width="100%"  >
                    <tr>
                        <td align="left">
                            <!-- DATE TIME USER CONTROL -->
                        </td>
                        <td align="right">
                            <table cellpadding="0" cellspacing="3">
                                <tr>
                                   <td></td> 
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>


            <%--session related codeing end--%>
            <%--<asp:ContentPlaceHolder ID="TitleContent" runat="server" />--%>
            <asp:ContentPlaceHolder ID="MainContent" runat="server">
            </asp:ContentPlaceHolder>
            <table width="100%" >
                <tr>
                    <td class="bodycontent">
                        <table cellpadding="0" cellspacing="0" class="table_body">
                            <tr>
                                <td style="width: 1%" rowspan="5">
                                    &nbsp;
                                </td>
                               
                            </tr>
                            <tr align="center">
                                <td align="center">
                                    <%--<img src="../../Content/images/ship1.jpg" alt="Slider Image" width="980" height="340" />--%>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                    </td>
                </tr>
            </table>
            <table id="sessionEndDialog" title="Session Expire" class="text_intable_header" style="display: none"
                border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td rowspan="2" align="center" valign="center">
                        <span class="informaton"></span>
                    </td>
                    <td class="headingLabel">
                        <label id="sesson" style="width: 190px">
                            Your session is about to expire. Click OK to renew your session or CANCEL to My
                            Task of the application.
                        </label>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
    <div align="center" style="font-size: 10px">
        <pre>-- by Shrilata E. </pre>
    </div>
    <%--</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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


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

Comments and Discussions