473,397 Members | 1,972 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,397 software developers and data experts.

Contol Location on Webform


I am making the jump into Webforms/asp from Windows forms.

To ease the transition I am setting up an address book so I can use
code from the previous Windows forms app.

I have a really simple (stupid?) question.

I have added a panel to the webform and then added labels/text boxes to
the panel but I can't locate them where I want them - if I try and move
them they slide to the side of the panel.

Is there a simple setting I am missing? I see controls have a Height
and Width property but no Top or Left property, does that mean I can't
decide where controls go?

--
Jeff Gaines Damerham Hampshire UK
Nov 18 '05 #1
4 1005
Set the pageLayout property of the control to GridLayout instead of
FlowLayout. Won't hurt that you choose the targetSchema for the page to be
Internet Explorer 5.0 instead of IE 3.02/Netscape 3.0.

S. L.

"Jeff Gaines" <wh*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.com...

I am making the jump into Webforms/asp from Windows forms.

To ease the transition I am setting up an address book so I can use
code from the previous Windows forms app.

I have a really simple (stupid?) question.

I have added a panel to the webform and then added labels/text boxes to
the panel but I can't locate them where I want them - if I try and move
them they slide to the side of the panel.

Is there a simple setting I am missing? I see controls have a Height
and Width property but no Top or Left property, does that mean I can't
decide where controls go?

--
Jeff Gaines Damerham Hampshire UK

Nov 18 '05 #2
On 27/11/2004 Sylvain Lafontaine wrote:
Set the pageLayout property of the control to GridLayout instead of
FlowLayout. Won't hurt that you choose the targetSchema for the page
to be Internet Explorer 5.0 instead of IE 3.02/Netscape 3.0.

S. L.


Thanks Sylvain, I thought I was going mad!

--
Jeff Gaines Damerham Hampshire UK
Nov 18 '05 #3
Well, Jeff, don't start celebrating too soon.

You have to understand the vast differences between an executable app that
resides in its own nice little memory sandbox on a single machine, and an
ASP.Net web application, which is a client-server app that is distributed
across a TCP/IP network, primarily using HTTP as the transport. HTTP is
stateless. You will have to learn how to work with memory that must be
re-instantiated with each Page request. And in terms of layout, you will
face your greatest challenges.

The problem is browsers. Different browsers support different things
differently, and layout is always a hassle. Using Grid layout means that
you're using in-line CSS (Cascading Style Sheets) to position and lay out
your HTML objects (your Controls). CSS is going to behave differently in
different browsers. Not using CSS means that you're most likely to use HTML
tables for positioning. That is also problematic.

In a desktop app, the app itself draws everything, and you can count on it
behaving just as you programmed it. In a web app, the browser interprets the
HTML, and you cannot count on much of anything.

I would suggest reading everything you can about HTML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Jeff Gaines" <wh*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.com...
On 27/11/2004 Sylvain Lafontaine wrote:
Set the pageLayout property of the control to GridLayout instead of
FlowLayout. Won't hurt that you choose the targetSchema for the page
to be Internet Explorer 5.0 instead of IE 3.02/Netscape 3.0.

S. L.


Thanks Sylvain, I thought I was going mad!

--
Jeff Gaines Damerham Hampshire UK

Nov 18 '05 #4
On 27/11/2004 Kevin Spencer wrote:
Well, Jeff, don't start celebrating too soon.
[snipped]
I would suggest reading everything you can about HTML.


Sometimes I get very tempted to try and find a used Vic 20 and go back
to 6502 assembler.

Anyway, it will keep me out of mischief while I'm learning :-)

--
Jeff Gaines Damerham Hampshire UK
Nov 18 '05 #5

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

Similar topics

2
by: °Ë´óɽÈË | last post by:
Hi, I want to realize moving contols in a panel, just like Form Desinger in VS.NET. How shall I realize it? Thank you. Jerry
6
by: Maurice Walmsley | last post by:
hi, I hope someone can help me with this please I'm trying to move my codebehind files to a folder other than the one my webform sits in. I've tried changing the 'scr' page level attribute of...
2
by: Dee | last post by:
Hi, I use a DataGrid in a WebForm and when i page thru data its height changes. This hides some controls i have place just underneath it. Is there a way to dynamically add the controls in the...
0
by: D Miller | last post by:
I've created a control that has as one of it's properties (named "Grid") a class that includes three items, much like the size or point classes that exists already. Now my question. When I go to...
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
0
by: pushpi | last post by:
Hi, i'm using the Treeview contol in asp.net 2.0 (present in VS2005 toolbox). i'm having checkboxes for all the nodes in the treeview.All i want to have is that On Checking a checkbox for a...
1
by: stephen | last post by:
Hi, Can we have a tab contol on a webform just like windows application? if yes, can you please point me to the article. Thanks, Stephen
1
by: =?Utf-8?B?QW5keQ==?= | last post by:
Hello All: I have the following DataList. In the <TD class="photo"line, I would like to be able to add some code where I can gather the actual size of the photo, then pass that to the popImage...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have start web form and when the user clicks a button (server.transfer) they are directed to the second webform. I was wondering if there is a way to create an instance of the first webform...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.