Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Gaines
11-27-04 08:57 PM


Re: Contol Location on Webform
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" <whitedragon@newsgroup.nospam> wrote in message
news:xn0dq9qdnf8zy6004@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



Report this thread to moderator Post Follow-up to this message
Old Post
Sylvain Lafontaine
11-29-04 09:09 PM


Re: Contol Location on Webform
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

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Gaines
11-29-04 09:09 PM


Re: Contol Location on Webform
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" <whitedragon@newsgroup.nospam> wrote in message
news:xn0dq9qz0g3x3y006@news.microsoft.com...
> On 27/11/2004 Sylvain Lafontaine wrote:
> 
>
> Thanks Sylvain, I thought I was going mad!
>
> --
> Jeff Gaines Damerham Hampshire UK



Report this thread to moderator Post Follow-up to this message
Old Post
Kevin Spencer
11-29-04 09:09 PM


Re: Contol Location on Webform
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

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Gaines
11-29-04 09:09 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP .NET archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:27 AM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.