Re: div tag disappears

  •  03-04-2010, 9:18 AM

    Re: div tag disappears

    <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/EEPMMenu.Master" CodeBehind="IM-AttachDocuments.aspx.cs" Inherits="OncorProject.IM_AttachDocuments" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

    <script language="javascript" type="text/javascript" src="Script/Documents.js"></script>

    <script language="javascript" type="text/javascript">

    function CallAttach()

    {

    document.getElementById('DivAttach').style.top=250;

    document.getElementById('DivAttach').style.left=200;

    document.getElementById('DivAttach').style.display='block';

    }

    function CallAttach(obj, e)

    {

    document.getElementById('DivAttach').style.top=WindowEventY(obj, e)-obj.offsetTop+10;

    document.getElementById('DivAttach').style.left=WindowEventX(obj, e)-obj.offsetLeft+100;

    document.getElementById('DivAttach').style.display='block';

    }

    function CallUploadNewVersion(obj, e,val)

    {

     

    document.getElementById('DivAttach').style.top=WindowEventY(obj, e)-obj.offsetTop+10;

    document.getElementById('DivAttach').style.left=WindowEventX(obj, e)-obj.offsetLeft+10;

    document.getElementById('DivAttach').style.display='block';

    document.getElementById(GetClientId('hdnDocumentVersionId')).value = val;

    document.getElementById(GetClientId('hdnIsNewVersion')).value = val;

    }

    </script>

     

     

    <div id="DivAttach" class="DivAttach">

    <table width="345" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td class="FormName" id="lblFormName">File Upload</td>

    </tr>

    </table>

    <div style="padding: 10px 7px 10px 7px; z-index: 101;">

    <table width="330" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td width="80" class="FilterLabel"> Attach URL</td>

    <td width="1" class="FilterLabel"> :</td>

    <td class="FilterField" >

    <CuteWebUI:UploadAttachments InsertText="Upload" runat="server"

    ID="Attachments1" MultipleFilesUpload="true" OnAttachmentRemoveClicked="Attachments1_AttachmentDelete">

    </CuteWebUI:UploadAttachments>

    <asp:FileUpload ID="FileUpload1" CssClass="ListBox" runat="server" Width="250px" Visible="false"/>

    </td>

    </tr>

    <tr>

    <td class="FilterLabel" style="height: 24px">

    </td>

    <td class="FilterLabel" style="height: 24px">

    </td>

    <td class="FilterField" >

    <asp:Button ID="Button1" CssClass="Button" runat="server" Text="DeleteAll" OnClick="ButtonDeleteAll_Click" /></td>

    </tr>

    <tr>

    <td class="FilterLabel" style="height: 24px">Description</td>

    <td class="FilterLabel" style="height: 24px"> :</td>

    <td class="FilterField" style="height: 24px"><asp:TextBox ID="txtDescription" runat="server" CssClass="NormalTxtBox" Width="250px"></asp:TextBox> </td>

    </tr>

    <tr align="right">

    <td class="FilterLabel">

    <asp:RadioButton ID="rdInspector" Visible="false" GroupName="RoleName" runat="server" Checked= "True" Text="Inspector" />&nbsp;

    <asp:RadioButton ID="rdProjectManager" Visible="false" GroupName="RoleName" runat="server" Text="Program Manager" />

    </td>

    <td class="FilterLabel" align="right" colspan="2">&nbsp;

    <asp:Button ID="btnAttachOk" CssClass="Button" runat="server" Text="Ok" OnClick="btnAttachOk_Click" />

    <asp:Button ID="Button2" CssClass="Button" runat="server" Text="MULITPLE" OnClick="btnMultipleAttach_Click" />

    <input id="btnURLCancel" class="Button" type="button" value="Cancel" onclick="document.getElementById('DivAttach').style.display='none'" />

    </td>

    </tr>

    </table>

    </div>

    </div>

     

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td valign="top">

    <div class="DivInnerTable" id="divSiteInfo" runat="server">

    <table width="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>

    <td>

    <!--Filter & Grid Table -->

    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="">

    <tr>

    <td width="1" valign="bottom">

    <img src="Images/TopBottomCorner_01.gif"></td>

    <td class="TopImg" width="100%">

    <img src="Images/Spacer.gif" width="1"></td>

    <td width="1">

    <img src="Images/TopBottomCorner_03.gif"></td>

    </tr>

    <tr>

    <td class="LeftImg">&nbsp;</td>

    <td class="Center">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td align="center" class="MessageLabel">&nbsp;<asp:Label ID="lblMessage" runat="server"></asp:Label></td>

    </tr>

    <tr><td align="right" class="FilterField"><asp:LinkButton ID="lnkBack" Text="Back" runat="server" OnClick="lnkBack_Click" /></td></tr>

    <tr><td class="AllMessage" align="center">Attach/View Documents</td></tr>

    <tr><td><img src="Images/Spacer.gif" width="1" height="10" /></td></tr>

    </table>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td width="80" class="FromLabel">Project Name </td>

    <td width="1" class="FilterLabel" >:</td>

    <td width="140" class="FromField"><asp:Label ID="lblProjectName" Text="" runat="server" /></td>

    <td width="80" class="FromLabel">Project Code </td>

    <td width="1" class="FilterLabel" >:</td>

    <td width="140" class="FromField"><asp:Label ID="lblProjectCode" Text="" runat="server" /></td>

    </tr>

    <tr runat="server" id="trCustomerSite" style="display:none;">

    <td width="80" class="FromLabel">Customer Site </td>

    <td width="1" class="FilterLabel" >:</td>

    <td width="140" class="FromField"><asp:Label ID="lblCustomerSiteName" Text="" runat="server" /></td>

    <td width="80" class="FromLabel">ESI ID </td>

    <td width="1" class="FilterLabel" >:</td>

    <td width="140" class="FromField"><asp:Label ID="lblESIID" Text="" runat="server" /></td>

    </tr>

    <tr runat="server" id="trMeasure" style="display:none;">

    <td width="80" class="FromLabel">Measure Name </td>

    <td width="1" class="FilterLabel" >:</td>

    <td width="140" class="FromField"><asp:Label ID="lblMeasureName" Text="" runat="server" /></td>

    <td colspan="3">&nbsp;</td>

    </tr>

     

    <tr><td colspan="6" class="AllMessage">&nbsp;</td></tr>

    <tr><td colspan="6"><img src="Images/Spacer.gif" width="1" height="10" /></td></tr>

    <tr><td colspan="6" class="PostNewMsg" align="center"><asp:HyperLink ID="lnkFileUpload" Style="cursor: pointer" runat="server" Text="Upload a file" /></td></tr>

    <tr><td colspan="6"><img src="Images/Spacer.gif" width="1" height="10" /></td></tr>

    </table>

    <div style="margin-top: -5px; z-index: 1001; overflow: auto;" runat="server" id="pnlInfoPathPage">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td><asp:PlaceHolder ID="phDocument" runat="server"></asp:PlaceHolder>

    <asp:HiddenField ID="hdnDocumentVersionId" runat="server" />

    <asp:HiddenField ID="hdnIsNewVersion" runat="server" />

    <asp:HiddenField ID="hdnDocLevel" runat="server" />

    <asp:HiddenField ID="PageNavigate" runat="server" />

    <asp:HiddenField ID="hdnProjectfile" runat="server" />

    </td>

    </tr>

    </table>

    </div>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td class="" width="">

    <img src="Images/Spacer.gif" width="1" height="10"></td>

    </tr>

    </table>

    </td>

    <td class="RightImg">&nbsp;</td>

    </tr>

    <tr>

    <td><img src="Images/TopBottomCorner_06.gif"></td>

    <td class="BottomImg"><img src="Images/Spacer.gif" width="1" height="6"></td>

    <td><img src="Images/TopBottomCorner_07.gif"></td>

    </tr>

    </table>

    </td>

    </tr>

    </table>

    </div>

    </td>

    </tr>

    </table>

    </asp:Content>

View Complete Thread