UserControl does not resize in form?

A

al

Greetings,

I included a UserControl (UC)on webpage. It works fine except when I
change document direction to 'rtl', UC doesn't resize with the rest of
document. It just disappears behinde rest of document(textbox,
labesl...etc)?

Any idea/s??

Usually, what is the best way of placing UC in a webpage? In a
separte table or just with the rest of document in one main table and
nest it in a cell??


code:

<%@Register TagPrefix="ToolBar" TagName="tbl"
Src="UserControls\MainToolBar.ascx"%>

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Employees.aspx.vb" Inherits="Northwind.Employees"
smartNavigation="True" %>


<body language="javascript" bottomMargin="150"
MS_POSITIONING="GridLayout">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"></TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployeesDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="buttonface"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:label
id="lblFirstName" runat="server" Width="72px"></asp:label></td>

<td id="Country" style="WIDTH: 48px; HEIGHT: 25px"
colSpan="1"><asp:textbox id="txtFirstName" runat="server"
Width="416px"></asp:textbox></td>
</tr>

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:label
id="lblLastName" runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastName" style="WIDTH: 469px; HEIGHT: 16px"><asp:textbox
id="txtLastName" runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:label
id="lblBirthDatee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:textbox id="txtBirthDate"
runat="server" Width="160px"></asp:textbox><asp:label
id="lblEmployeeID" runat="server"
Width="88px"></asp:label><asp:textbox id="txtEmployeeID"
runat="server" Width="152px"></asp:textbox></td>
</tr>
</TABLE>
</Form>

MTIA,
Grawsha
 
C

Curt_C [MVP]

either will work but personally I often use a seperate table tag embeded
within a master table. This allows me a slightly more configurable approach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top