473,320 Members | 2,147 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,320 software developers and data experts.

Control postioning

Hi
I been having a little problem on both a work and home projects. For work, I
have created a user control with a few textboxs and 2 dropdownlists, here is
the code:
<table style="border-top-style: solid; border-right-style: solid;
border-left-style: solid; border-bottom-style: solid; height: 167px;">
<tr>
<td style="width: 201px; text-align: center; height: 24px;">
Search Options</td>
</tr>
<tr>
<td style="width: 201px; height: 105px" valign="top">
<asp:DropDownList ID="cmbOptions" runat="server" Width="195px"
AutoPostBack="True">
<asp:ListItem Text="Search by PO ID" Value=0 Selected="True"
/>
</asp:DropDownList><br />
<asp:DropDownList ID="cmbFields" runat="server" Width="152px">
<asp:ListItem>RequestDate</asp:ListItem>
</asp:DropDownList><br />
<asp:Label ID="lblFrom" runat="server" Style="left: 291px; top:
78px"
Text="From"></asp:Label>
<asp:TextBox ID="txtFrom" runat="server" Width="89px"
style="left: 87px; top: 100px"></asp:TextBox><br />
<asp:Label ID="lblSearch" runat="server" Style="left: 20px;
position: static; top: 122px"
Text="To"></asp:Label>

<asp:TextBox ID="txtSearch" runat="server" Width="89px"
style="left: 88px; top: 124px"></asp:TextBox> <br />

<asp:Button ID="cmdSearch" runat="server" Text="Start Search"
Width="151px" style="left: 33px; top: 147px" /></td>
</tr>
</table>
I shortened the lists for the dropdowns for this message.
I have given anough room on the right side of the bottom textbox, but
everytime the page loads, the textbox always end up one line down. I tried
using the "Absolutely position" property, but when the page loads, the
controls that where set that way end up in another potition on the page and
not within the table. None of the other settings seem to work either. Is
there a way to handle this so that the textbox stays where its suppose to?
Also, could it have something to do with all the &nbsp that gets inserted
when I use the spacebar to position the control? Thanks for any info and
suggestions.
Michael

Apr 27 '06 #1
1 990
Hi Again,
for the problem at work I have changed it so that each field in the search
box is in its own cell. This is working fine for now, but I would still like
some info on this topic if possible, because the project at home, not sure if
I can use the same solution. Thanks for any info.
Michael
"Michael" wrote:
Hi
I been having a little problem on both a work and home projects. For work, I
have created a user control with a few textboxs and 2 dropdownlists, here is
the code:
<table style="border-top-style: solid; border-right-style: solid;
border-left-style: solid; border-bottom-style: solid; height: 167px;">
<tr>
<td style="width: 201px; text-align: center; height: 24px;">
Search Options</td>
</tr>
<tr>
<td style="width: 201px; height: 105px" valign="top">
<asp:DropDownList ID="cmbOptions" runat="server" Width="195px"
AutoPostBack="True">
<asp:ListItem Text="Search by PO ID" Value=0 Selected="True"
/>
</asp:DropDownList><br />
<asp:DropDownList ID="cmbFields" runat="server" Width="152px">
<asp:ListItem>RequestDate</asp:ListItem>
</asp:DropDownList><br />
<asp:Label ID="lblFrom" runat="server" Style="left: 291px; top:
78px"
Text="From"></asp:Label>
<asp:TextBox ID="txtFrom" runat="server" Width="89px"
style="left: 87px; top: 100px"></asp:TextBox><br />
<asp:Label ID="lblSearch" runat="server" Style="left: 20px;
position: static; top: 122px"
Text="To"></asp:Label>

<asp:TextBox ID="txtSearch" runat="server" Width="89px"
style="left: 88px; top: 124px"></asp:TextBox> <br />

<asp:Button ID="cmdSearch" runat="server" Text="Start Search"
Width="151px" style="left: 33px; top: 147px" /></td>
</tr>
</table>
I shortened the lists for the dropdowns for this message.
I have given anough room on the right side of the bottom textbox, but
everytime the page loads, the textbox always end up one line down. I tried
using the "Absolutely position" property, but when the page loads, the
controls that where set that way end up in another potition on the page and
not within the table. None of the other settings seem to work either. Is
there a way to handle this so that the textbox stays where its suppose to?
Also, could it have something to do with all the that gets inserted
when I use the spacebar to position the control? Thanks for any info and
suggestions.
Michael

Apr 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
6
by: shapper | last post by:
Hello, I am working in a class library with various custom controls. In which cases should a control inherit Control, WebControl and CompositeControl classes? And when should a custom...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.