473,395 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

UserControl does not resize in form?

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
2 2809
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: karlodb | last post by:
Hi all, I've been struggling with some strange VB behaviour for the last two days. I have created a usercontrol and placed two buttons in it. One is anchored bottom and right. When place the...
0
by: Steve Long | last post by:
Hello, I'm trying to write my first UserControl in C#. It's pretty simple so far, just the design surface and two treeview controls. The problem is that the resize event of the UserControl isn't...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
1
by: al | last post by:
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...
0
by: karlodb | last post by:
Hi all, I've been struggling with some strange VB behaviour for the last two days. I have created a usercontrol and placed two buttons in it. One is anchored bottom and right. When place the...
1
by: **Developer** | last post by:
I'm geting a lot of flashing while resizing a form containing one of my usercontrols that is docked fill. This doesn't alway happen, depends on what is visible on the control. Is there some...
2
by: Rene Sørensen | last post by:
In VS 2005 I'm trying to create a usercontrol, but I have some problems with it right now I can't figure out how to fix. The size of my usercontrol is "Size 574; 619" I have anchored all controls...
0
by: Joe | last post by:
Anyone have any experience using custom snaplines? I have a usercontrol that acts as a container for several child controls. I wrote an inherited ControlDesigner to handle some custom actions...
1
by: Jeff | last post by:
..NET 2.0 I've added a custom UserControl onto a form. When I resize the form the UserControl doesn't resize. What property do I need to set on the UserControl so it automatically resizes if the...
4
by: Hamed | last post by:
Hello I have a UserControl sized to 100; 200 When I drop it in my form the initial size is 100;200 (as I prefer). Then I decided to change the size of my UserControl to 200;200 but although I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.