Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 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 28th, 2004, 04:34 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to move WEB controls dynamically?

Hi,
In my ASP.NET application I have the DataGrid control on the page, which can grow dynamically. I also have the Button beneath the grid. The button stays in same place regardless of the grid size. How to manipulate with the button's position on the page if it does not have such properties as "TOP", "LEFT" etc.?

Thanks in advance
-Dmitriy
 
Old May 3rd, 2004, 07:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

It sounds like you're using the (useless) grid layout in Visual Studio .NET, right?

If that's the case, remove the layout attribute from the <body> tag that VS.NET adds, and redesign your page. By default, HTML pages will automatically flow. That is, when the button is located in the source after the DataGrid, the button will appear after the grid in the browser as well, no matter the size of that grid.
The positioning stuff that VS.NET adds really can mess your pages up....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Desaparecido by Manu Chau (From the album: Clandestino) What's This?
 
Old May 3rd, 2004, 10:47 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Imar,
I've solved my problem for now using PANEL (I placed Grid then Button on the Panel and it works in my case), but I will try your advice anyway.
Thanks again
    -Dmitriy
 
Old May 3rd, 2004, 05:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Dmitriy,

Glad you fixed it. Be aware, though, that the stuff that Visual Studio .NET generates when in Grid Mode, may look really weird in other, non-Microsoft browsers. Be sure to test your application in a range of other browsers before you put your application live (if other browsers are an issue anyway, of course).

Cheers,

Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me about dynamically created controls vingo_mail ASP.NET 2.0 Basics 1 March 24th, 2008 12:54 PM
Adding Controls Dynamically andyj00 C# 0 March 19th, 2007 08:54 AM
dynamically creating controls rahulpokharna C# 1 January 11th, 2006 12:47 PM
Dynamically created controls katsarosj ASP.NET 1.0 and 1.1 Basics 4 February 4th, 2004 09:13 PM





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