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

Making objects move along with resizing browser page ?

P: n/a
WJ
What controls needed to cause the entire page moves along with the
"resizing" of the web browser (left/right)?

Example: Click here http://www.google.com, when Google main page is
displayed in your browser, then try to resize it horizontally, notice that
all the objects inside the page also move along while you are resizing your
browser. I would like apply ther same effect in Asp.Net form.

Thanks for your help,

John
Nov 19 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
John,

Just use FlowLayout.

Eliyahu

"WJ" <Jo*******@HotMail.Com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
What controls needed to cause the entire page moves along with the
"resizing" of the web browser (left/right)?

Example: Click here http://www.google.com, when Google main page is
displayed in your browser, then try to resize it horizontally, notice that
all the objects inside the page also move along while you are resizing your browser. I would like apply ther same effect in Asp.Net form.

Thanks for your help,

John

Nov 19 '05 #2

P: n/a
WJ

"Eliyahu"

I does not work. FlowLayout only work during design mnode, not exeute mode.

Thanks,

John
Nov 19 '05 #3

P: n/a
I think you should be only happy to know that you are mistaken. In HTML
world flow layout is called relative positioning, as opposed to absolute.
This is the default positioning mode. Open that google page you like, right
click the mouse and select "View Source". You will see the html code for the
page. If you don't find any mentioning of positioning, that means it is
relative.

Eliyahu

"WJ" <Jo*******@HotMail.Com> wrote in message
news:uc*************@TK2MSFTNGP10.phx.gbl...

"Eliyahu"

I does not work. FlowLayout only work during design mnode, not exeute mode.
Thanks,

John

Nov 19 '05 #4

P: n/a
WJ
Thanks Eliyahu, I got it but it is extremlely hard to manage. Very ugly.

John
Nov 19 '05 #5

P: n/a
Ok, you have to know another magic word. That's "table". You can manage flow
layout nicely and easily by putting everything in html tables.

Eliyahu

"WJ" <Jo*******@HotMail.Com> wrote in message
news:u6**************@TK2MSFTNGP10.phx.gbl...
Thanks Eliyahu, I got it but it is extremlely hard to manage. Very ugly.

John

Nov 19 '05 #6

P: n/a
WJ
Thanks Eliyahu for your reply. Yes, I always use HTML/Table controls to
format complex forms. What I did not do was to set the "Align" property to
"Center". As soon as I set this property to each Table in the form, it works
like a charm :). I hope MS improves the current VS/IDE better in the future
versions.

John
Nov 19 '05 #7

P: n/a
Let's see some of your HTML you have. You may be doing your layout
incorrectly
"WJ" <Jo*******@HotMail.Com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
What controls needed to cause the entire page moves along with the
"resizing" of the web browser (left/right)?

Example: Click here http://www.google.com, when Google main page is
displayed in your browser, then try to resize it horizontally, notice that
all the objects inside the page also move along while you are resizing
your browser. I would like apply ther same effect in Asp.Net form.

Thanks for your help,

John

Nov 19 '05 #8

P: n/a
WJ

Hello "Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Let's see some of your HTML you have. You may be doing your layout
incorrectly


It is working now. I just had to set the Align property of the Html Table
control to "Center" to have the Google effect:

************
<%@ Page language="c#" Codebehind="pLayOut.aspx.cs" AutoEventWireup="false"
Inherits="pLayOut.pLayOut" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>tt</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300"
border="1" align="center">
<TR>
<TD>
<asp:Label id="Label1" runat="server"></asp:Label></TD>
</TR>
<TR>
<TD>
<asp:Button id="butXMLGener" runat="server" Text="Write
XML"></asp:Button></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

************

John Webb
Nov 19 '05 #9

P: n/a
I'm not surprised that you've been confused by all the control positioning
options in ASP.NET. There is a lot of confusion about this, which is why I
wrote this article on the subject which will hopefully clear things up:
http://www.aspnetpro.com/NewsletterA...200504so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"WJ" <Jo*******@HotMail.Com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
What controls needed to cause the entire page moves along with the
"resizing" of the web browser (left/right)?

Example: Click here http://www.google.com, when Google main page is
displayed in your browser, then try to resize it horizontally, notice that
all the objects inside the page also move along while you are resizing
your browser. I would like apply ther same effect in Asp.Net form.

Thanks for your help,

John

Nov 19 '05 #10

P: n/a
WJ

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm not surprised that you've been confused by all the control positioning
options in ASP.NET. There is a lot of confusion about this, which is why
I wrote this article on the subject which will hopefully clear things up:
http://www.aspnetpro.com/NewsletterA...200504so_l.asp


Thanks for the link, the article addresses the issue but it is indeed wordy
:), most of us would love to see just a three steps wizard (with picture be
helpful) document to demonstrate a design strategy . For example, I know
what is "FlowLayOut", and I set the Document property to FlowLayOut, then
the system should have arranged all the objects on the form for me based on
the LayOut I select, instead, it does not do this and this is the confuse
part. On top of that, I do not want to switch to HTML to tweak things
around, that is not my expertise. All I need is to set a property of any
controls on the webform using the Property dialog. Please bring this to Bill
Gate Team.

Thanks

John
Nov 19 '05 #11

P: n/a
Sometimes complex things need lots of words to be described.

I understand you are saying it seems like a simple thing, so it should be
simpler to program than it is. I'll tell Bill Gates next time I see him.
;-)

If you've got left over unwanted positioning on your FlowLayout controls and
you don't want to strip them from HTML view then just delete the control and
drag a new one onto your form.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"WJ" <Jo*******@HotMail.Com> wrote in message
news:eN**************@tk2msftngp13.phx.gbl...

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm not surprised that you've been confused by all the control
positioning options in ASP.NET. There is a lot of confusion about this,
which is why I wrote this article on the subject which will hopefully
clear things up:
http://www.aspnetpro.com/NewsletterA...200504so_l.asp


Thanks for the link, the article addresses the issue but it is indeed
wordy :), most of us would love to see just a three steps wizard (with
picture be helpful) document to demonstrate a design strategy . For
example, I know what is "FlowLayOut", and I set the Document property to
FlowLayOut, then the system should have arranged all the objects on the
form for me based on the LayOut I select, instead, it does not do this and
this is the confuse part. On top of that, I do not want to switch to HTML
to tweak things around, that is not my expertise. All I need is to set a
property of any controls on the webform using the Property dialog. Please
bring this to Bill Gate Team.

Thanks

John

Nov 19 '05 #12

P: n/a
WJ

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
...then just delete the control and drag a new one onto your form.


Not as simple as it sounds! Example: A control with code behind (Event):
When deleted, all code behind may also be deleted and or you forget the
previous control name (ID) and then name the new one differently, then the
event will not fire or fired with a previous ID.... Yes it is easier to
clean up and spot them if your program is small enough. Sometimes, I delete
a control, save All, create a new control, save all and for some odd
reasons, the intellisense does not show up, I have to quit VS and come back,
then it shows up. Very weird behavior.

John


Nov 19 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.