By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

UserControl does not resize in form?

P: n/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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
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

Nov 18 '05 #2

P: n/a
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.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
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

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.