Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2008, 12:12 AM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Content page DIV tag problem

hi ,

i used DIV tags for table. So inside my content page DIVs are not work correctly. Design time it showing correct way inside content page. but run time all are not inside content page. How i fixed this problem.. Please see below code..Zip it!

Thanks

<%@ Page Language="C#" MasterPageFile="~/Test.master" AutoEventWireup="true" CodeFile="EditBasicItemSubtype.aspx.cs" Inherits="GenaralMaintenence_BasicItemSubType_Edit _Basic_Item_Sub_type" Title=".:Edit Basic Item Sub Type:." %>

<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="757" height="100%" border="0" align="center">
        <tr>
            <td style="width: 100px;height:232px" >
    <asp:ScriptManager id="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
<DIV style="FONT-SIZE: 8px; WIDTH: 700px; FONT-FAMILY: Tahoma; HEIGHT: 232px">&nbsp;&nbsp;&nbsp;&nbsp; <FIELDSET style="Z-INDEX: 1; LEFT: 255px; WIDTH: 633px; POSITION: absolute; TOP: 266px; HEIGHT: 257px"><DIV style="Z-INDEX: 112; LEFT: 23px; WIDTH: 132px; POSITION: absolute; TOP: 25px; HEIGHT: 13px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="Label1" runat="server" Width="117px" ForeColor="Red" Font-Names="Tahoma" Font-Bold="False" Height="11px" Font-Size="8pt">* Mandatory Fields</asp:Label></DIV><FIELDSET style="Z-INDEX: 2; LEFT: 9px; WIDTH: 612px; POSITION: absolute; TOP: 44px; HEIGHT: 141px"><LEGEND style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; FONT-FAMILY: Tahoma">Edit Basic Item Sub Type</LEGEND><DIV style="Z-INDEX: 2; LEFT: 8px; WIDTH: 604px; POSITION: absolute; TOP: 11px; HEIGHT: 131px"><DIV style="Z-INDEX: 119; LEFT: 7px; WIDTH: 79px; POSITION: absolute; TOP: 51px; HEIGHT: 14px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="lblBITSDescription" runat="server" Font-Bold="True" Height="19px" Font-Size="8pt" Text="Description"></asp:Label></DIV><DIV style="Z-INDEX: 114; LEFT: 7px; WIDTH: 116px; POSITION: absolute; TOP: 6px; HEIGHT: 18px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="lblBasicItemType" runat="server" Width="112px" Font-Bold="True" Height="21px" Font-Size="8pt" Text="Basic Item Type"></asp:Label></DIV><DIV style="Z-INDEX: 106; LEFT: 7px; WIDTH: 128px; POSITION: absolute; TOP: 30px; HEIGHT: 14px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="lblBasicItemSubType" runat="server" Width="122px" Font-Bold="True" Height="19px" Font-Size="8pt" Text="Basic Item Sub Type"></asp:Label></DIV><DIV style="Z-INDEX: 115; LEFT: 140px; WIDTH: 85px; POSITION: absolute; TOP: 6px; HEIGHT: 22px; TEXT-ALIGN: left"><asp:DropDownList id="drpBasicItemType" runat="server" Width="80px" Font-Names="Tahoma" OnSelectedIndexChanged="drpBasicItemType_SelectedI ndexChanged" AutoPostBack="True"></asp:DropDownList></DIV><DIV style="Z-INDEX: 110; LEFT: 140px; WIDTH: 271px; POSITION: absolute; TOP: 48px; HEIGHT: 17px; TEXT-ALIGN: left"><asp:TextBox id="txtBISDescription" runat="server" Width="259px" Font-Names="Tahoma" TextMode="MultiLine"></asp:TextBox></DIV><DIV style="Z-INDEX: 105; LEFT: 140px; WIDTH: 84px; POSITION: absolute; TOP: 28px; HEIGHT: 22px; TEXT-ALIGN: left"><asp:DropDownList id="drpBasicItemSubType" runat="server" Width="80px" Font-Names="Tahoma" OnSelectedIndexChanged="drpBasicItemSubType_Select edIndexChanged" AutoPostBack="True"></asp:DropDownList></DIV><DIV style="Z-INDEX: 111; LEFT: 7px; WIDTH: 63px; POSITION: absolute; TOP: 83px; HEIGHT: 16px; TEXT-ALIGN: left"><asp:Button id="btnSearch" onclick="btnSearch_Click" runat="server" Width="58px" Font-Names="Tahoma" Font-Size="8pt" Text="Search" CausesValidation="False"></asp:Button></DIV><DIV style="Z-INDEX: 116; LEFT: 247px; WIDTH: 216px; POSITION: absolute; TOP: 29px; HEIGHT: 14px; TEXT-ALIGN: left">&nbsp;<cc1:RequiredFieldValidator id="rfvbasicSubType" runat="server" Font-Names="Tahoma" Font-Size="8pt" ControlToValidate="drpBasicItemSubType" ErrorMessage="Please Select Basic ITem Sub Type" InitialValue="--Select--"></cc1:RequiredFieldValidator></DIV><DIV style="Z-INDEX: 117; LEFT: 250px; WIDTH: 177px; POSITION: absolute; TOP: 8px; HEIGHT: 17px; TEXT-ALIGN: left"><cc1:RequiredFieldValidator id="rfvbasicitemType" runat="server" Font-Names="Tahoma" Font-Size="8pt" ControlToValidate="drpBasicItemType" ErrorMessage="Please Select Basic Item Type" InitialValue="--Select--"></cc1:RequiredFieldValidator></DIV><DIV style="Z-INDEX: 112; LEFT: 10px; WIDTH: 385px; POSITION: absolute; TOP: 110px; HEIGHT: 13px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="lblMessage" runat="server" Width="372px" ForeColor="Red" Font-Names="Tahoma" Font-Bold="False" Height="11px" Font-Size="8pt"></asp:Label></DIV><DIV style="Z-INDEX: 112; LEFT: 411px; WIDTH: 22px; POSITION: absolute; TOP: 53px; HEIGHT: 13px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="Label3" runat="server" Width="12px" ForeColor="Red" Font-Names="Tahoma" Font-Bold="True" Height="11px" Font-Size="8pt">*</asp:Label></DIV><DIV style="Z-INDEX: 112; LEFT: 227px; WIDTH: 22px; POSITION: absolute; TOP: 28px; HEIGHT: 13px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="Label4" runat="server" Width="12px" ForeColor="Red" Font-Names="Tahoma" Font-Bold="True" Height="11px" Font-Size="8pt">*</asp:Label></DIV><DIV style="Z-INDEX: 112; LEFT: 227px; WIDTH: 22px; POSITION: absolute; TOP: 7px; HEIGHT: 13px; TEXT-ALIGN: left"><asp:Label style="Z-INDEX: 2" id="Label5" runat="server" Width="12px" ForeColor="Red" Font-Names="Tahoma" Font-Bold="True" Height="11px" Font-Size="8pt">*</asp:Label></DIV><DIV style="Z-INDEX: 116; LEFT: 431px; WIDTH: 128px; POSITION: absolute; TOP: 53px; HEIGHT: 14px; TEXT-ALIGN: left">&nbsp;<cc1:RequiredFieldValidator id="rfvDescription" runat="server" Width="121px" Font-Names="Tahoma" Font-Size="8pt" ControlToValidate="txtBISDescription" ErrorMessage="Please enter Description"></cc1:RequiredFieldValidator></DIV></DIV></FIELDSET> <DIV style="Z-INDEX: 104; LEFT: 206px; WIDTH: 229px; POSITION: absolute; TOP: 0px; HEIGHT: 22px; TEXT-ALIGN: left"><asp:Label style="FONT-SIZE: 12pt; Z-INDEX: 2" id="lblBanner" runat="server" Width="216px" Font-Names="Tahoma" Font-Bold="True" Height="10px" Font-Size="12pt" Text="Edit Basic Item SubType"></asp:Label></DIV><FIELDSET style="Z-INDEX: 1; LEFT: 8px; WIDTH: 614px; POSITION: absolute; TOP: 201px; HEIGHT: 46px"><DIV style="Z-INDEX: 2; LEFT: 6px; WIDTH: 375px; POSITION: absolute; TOP: 2px; HEIGHT: 48px"><DIV style="Z-INDEX: 113; LEFT: 77px; WIDTH: 67px; POSITION: absolute; TOP: 7px; HEIGHT: 21px; TEXT-ALIGN: left"><asp:Button id="btnExit" onclick="btnExit_Click1" runat="server" Width="61px" Font-Names="Tahoma" Font-Bold="True" Height="20px" Font-Size="8pt" Text="Exit" CausesValidation="False" PostBackUrl="~/GeneralMaintenance/BasicItemSubType/SubBasicItemAdd.aspx"></asp:Button></DIV><DIV style="Z-INDEX: 107; LEFT: 10px; WIDTH: 282px; POSITION: absolute; TOP: 30px; HEIGHT: 11px; TEXT-ALIGN: left"><asp:Label id="lblsave" runat="server" Width="265px" ForeColor="Blue" Font-Names="Tahoma" Font-Bold="False" Height="10px" Font-Size="8pt"></asp:Label></DIV><DIV style="Z-INDEX: 109; LEFT: 5px; WIDTH: 66px; POSITION: absolute; TOP: 6px; HEIGHT: 21px; TEXT-ALIGN: left">&nbsp;<asp:Button id="btnUpdate" onclick="btnUpdate_Click1" runat="server" Width="58px" Font-Names="Tahoma" Font-Bold="True" Font-Size="8pt" Text="Update"></asp:Button></DIV></DIV></FIELDSET></FIELDSET> &nbsp;</DIV>
</contenttemplate>
    </asp:UpdatePanel>
            </td>
        </tr>
    </table>
</asp:Content>
__________________
MSB





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing the content inside the div tag cheeky Pro JSP 0 April 26th, 2007 07:26 AM
how to loop through a div tag? Byock Classic ASP Basics 0 December 19th, 2006 02:52 AM
Background Image problem in DIV tag. cumminsj CSS Cascading Style Sheets 6 September 15th, 2006 03:02 AM
DIV TAG marclena ASP.NET 1.0 and 1.1 Professional 2 May 24th, 2005 11:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.