manoj_sahu
12-02-2005, 01:54 PM
I am working on a intranet based project.This application will be used only in IE.Sometimes my screen is not aligning properly.
i have attached 3 (.jpg) file which will explain u how my screen is is not aligning properly:
1) 1.jpg file is the actual required align, and in some pages it is displaying correctly.
2) 2.jpg and 3.jpg file is actually a single screen that is is not aligning properly.i have splited into 2 JPG files
for some cases the screen is aligning correctly and for some cases it is not
not aligning properly:
The below portion which is giving alignment problem, is used in many screens.
That's why i have created a function in a common asp file, and calling that function whenever it is required by using "<!--#include file="
-----------------------------------------------
<%
Private function RepBCPane(strBranchCode, tabindex)
%>
<table width="645" height="19" class='TABLEBDR_BG1' align="center">
<tr bgcolor="#d0ddc6" >
<td width="645" height="100" align="middle" >
<div align="center">
<div class="DIVTABLE" style="HEIGHT: 129px; WIDTH: 645">
<table width="650" height="40" align=center border=0 bordercolor=#336600 cellpadding=0 cellspacing=0>
<tr bgcolor="#d0ddc6" >
<td><B> Business center</b></td>
</TR>
<TR bgcolor="#d0ddc6">
<td> </td>
</TR>
<tr bgcolor="#d0ddc6">
<td width="690" height="40" align="middle" >
<div align="center">
<table width="100%" cellspacing = "0" cellpadding = "0">
<%
Dim objRS, cntBC
cntBC = 1
Set objRS = GetSalesPointBusinessCenter(strBranchcode)
If objRS.EOF Then
Response.Redirect "RepErr.asp?ErrorStatus=2"
end if
While not objRS.Eof
%>
<tr width="100%">
<td width="10%" align="center">
<input type="checkbox" name="chkBC_<%=objRS("Code")%>_" class="INPUT_NB" tabindex="<%=tabindex%>">
<input type="hidden" name="hidBC_Code_<%=cntBC%>_" value="<%=clng(objRS("Code"))%>">
<input type="hidden" name="hidBC_Name_<%=objRS("Code")%>_" value="<%=cstr(objRS("Description"))%>">
</td><td> </td>
<td width="35%" align="left">
<%=objRS("Code") & " - " & objRS("Description")%>
</td>
<%
tabindex = tabindex + 1
cntBC = cntBC + 1
objRS.MoveNext
If Not objRS.EOF then
%>
<td width="10%" align="center">
<input type="checkbox" name="chkBC_<%=objRS("Code")%>_" class="INPUT_NB" tabindex="<%=tabindex%>">
<input type="hidden" name="hidBC_Code_<%=cntBC%>_" value="<%=objRS("Code")%>">
<input type="hidden" name="hidBC_Name_<%=objRS("Code")%>_" value="<%=objRS("Description")%>">
</td><td> </td>
<td width="35%" align="left">
<%=objRS("Code") & " - " & objRS("Description")%>
</td>
<%
cntBC = cntBC + 1
tabindex = tabindex + 1
objRS.MoveNext
Else
%>
<td width="10%"> </td><td> </td><td width="40%"> </td>
<%
End if
%>
<tr>
<%
Wend
%>
<input type="hidden" value="<%=cntBC-1%>" name="hidBCTotalCount">
</table>
</div>
</td>
</tr>
</table>
</Div>
</div>
</td>
</tr>
</table>
<%
RepBCPane = tabindex
End function
%>
-------------------------------------------------------------------------
I am strucking my head.Please suggest me solution.
i have attached 3 (.jpg) file which will explain u how my screen is is not aligning properly:
1) 1.jpg file is the actual required align, and in some pages it is displaying correctly.
2) 2.jpg and 3.jpg file is actually a single screen that is is not aligning properly.i have splited into 2 JPG files
for some cases the screen is aligning correctly and for some cases it is not
not aligning properly:
The below portion which is giving alignment problem, is used in many screens.
That's why i have created a function in a common asp file, and calling that function whenever it is required by using "<!--#include file="
-----------------------------------------------
<%
Private function RepBCPane(strBranchCode, tabindex)
%>
<table width="645" height="19" class='TABLEBDR_BG1' align="center">
<tr bgcolor="#d0ddc6" >
<td width="645" height="100" align="middle" >
<div align="center">
<div class="DIVTABLE" style="HEIGHT: 129px; WIDTH: 645">
<table width="650" height="40" align=center border=0 bordercolor=#336600 cellpadding=0 cellspacing=0>
<tr bgcolor="#d0ddc6" >
<td><B> Business center</b></td>
</TR>
<TR bgcolor="#d0ddc6">
<td> </td>
</TR>
<tr bgcolor="#d0ddc6">
<td width="690" height="40" align="middle" >
<div align="center">
<table width="100%" cellspacing = "0" cellpadding = "0">
<%
Dim objRS, cntBC
cntBC = 1
Set objRS = GetSalesPointBusinessCenter(strBranchcode)
If objRS.EOF Then
Response.Redirect "RepErr.asp?ErrorStatus=2"
end if
While not objRS.Eof
%>
<tr width="100%">
<td width="10%" align="center">
<input type="checkbox" name="chkBC_<%=objRS("Code")%>_" class="INPUT_NB" tabindex="<%=tabindex%>">
<input type="hidden" name="hidBC_Code_<%=cntBC%>_" value="<%=clng(objRS("Code"))%>">
<input type="hidden" name="hidBC_Name_<%=objRS("Code")%>_" value="<%=cstr(objRS("Description"))%>">
</td><td> </td>
<td width="35%" align="left">
<%=objRS("Code") & " - " & objRS("Description")%>
</td>
<%
tabindex = tabindex + 1
cntBC = cntBC + 1
objRS.MoveNext
If Not objRS.EOF then
%>
<td width="10%" align="center">
<input type="checkbox" name="chkBC_<%=objRS("Code")%>_" class="INPUT_NB" tabindex="<%=tabindex%>">
<input type="hidden" name="hidBC_Code_<%=cntBC%>_" value="<%=objRS("Code")%>">
<input type="hidden" name="hidBC_Name_<%=objRS("Code")%>_" value="<%=objRS("Description")%>">
</td><td> </td>
<td width="35%" align="left">
<%=objRS("Code") & " - " & objRS("Description")%>
</td>
<%
cntBC = cntBC + 1
tabindex = tabindex + 1
objRS.MoveNext
Else
%>
<td width="10%"> </td><td> </td><td width="40%"> </td>
<%
End if
%>
<tr>
<%
Wend
%>
<input type="hidden" value="<%=cntBC-1%>" name="hidBCTotalCount">
</table>
</div>
</td>
</tr>
</table>
</Div>
</div>
</td>
</tr>
</table>
<%
RepBCPane = tabindex
End function
%>
-------------------------------------------------------------------------
I am strucking my head.Please suggest me solution.