Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 24th, 2007, 08:56 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Controls

I place a web control on a form in design mode and when I run the program the control has moved somewhere else. If I resize a control, it does not show the modification during runtime.

Please help.

Renee C. Walker
__________________
Renee C. Walker
 
Old April 24th, 2007, 09:10 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Are you using a Grid Layout or Flow Layout?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 24th, 2007, 09:32 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I could not figure out how to get the grid layout, so I guess I'm using the flow layout.

Renee C. Walker
 
Old April 24th, 2007, 09:32 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well parsons, I think this problem may arise with FlowLayout, moreover, FlowLayout wont allow proper drag and drop of controls from toolbox... According to me, one should design using the HTML view, like the classic case where we started using notepad as editor, what do you say?

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old April 24th, 2007, 09:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

in vs2003 you can choose what type of layout you want in the properties of the page.. by default it was flow..

or I remebered wrong??

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
 
Old April 24th, 2007, 09:42 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are correct, I'm sorry I'm using Visual Studio 2005.

Renee C. Walker
 
Old April 24th, 2007, 09:42 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No. In VS 2003 by default your pages are setup as Grid Layout and you must alter then explicitly to have flow layout.

I agree with Mike on this, very rarley do I rely on the designer to place my controls for me, I may initially drop the control on the designer but ultimately switch to HTML View to edit my layout.

In so far as the OP is concerned, even if you page is in Flow mode, a style with a Z-Index applied should still maintain the controls position; show me your entire server tag.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 24th, 2007, 10:39 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="Job Number" Width="80px"></asp:Label>
        &nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox3" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox4" runat="server" Width="16px"></asp:TextBox>
        <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" Height="16px"
            Text="."></asp:Label>
        <asp:TextBox ID="TextBox5" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox6" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox7" runat="server" Width="16px"></asp:TextBox>
        <asp:TextBox ID="TextBox8" runat="server" Width="16px"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Large" Height="16px"
            Text="."></asp:Label>
        <asp:TextBox ID="TextBox9" runat="server" Width="16px"></asp:TextBox>
        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:CheckBox ID="chkProposal" runat="server" Text="Proposal" style="left: 0px; top: 0px" />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp;
        <asp:Label ID="Label4" runat="server"
            Font-Bold="True" Font-Size="Large" Text="WJE Job Initiaion Form" Width="208px" style="left: -22px; top: 0px"></asp:Label><br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:CheckBox ID="chkActive"
            runat="server" Text="Active" />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;
        &nbsp; &nbsp;<asp:Label ID="Label5" runat="server" Text="Client:"></asp:Label>
        &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:TextBox ID="txtClient" runat="server" Width="112px" style="cursor: default"></asp:TextBox>
        &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
        <asp:Button ID="Button1" runat="server" Text="find" />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:DropDownList ID="ddlClient" runat="server"
            DataSourceID="ClientName" DataTextField="Name" DataValueField="Name" Style="position: static"
            Visible="False" Width="232px">
        </asp:DropDownList>
        &nbsp; &nbsp; &nbsp; &nbsp;

Renee C. Walker
 
Old April 24th, 2007, 10:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

well.. there is a weird label with style set left to -22px.. that's strange...

also why so many &nbsp;????

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
 
Old April 24th, 2007, 11:11 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using the html table control. I was told to use that to help with alignment issues.

Renee C. Walker





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web controls as backgrounds??? RichardLaw ASP.NET 2.0 Basics 0 October 20th, 2006 03:59 AM
Web Custom Controls Me VS.NET 2002/2003 2 July 15th, 2004 01:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.