473,320 Members | 2,158 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,320 software developers and data experts.

Unable to place controls in layout grid cells

Hello,

When I do the following:

- create a layout grid by going 'Layout' 'Insert Table';

- accept the default settings (3 x 3 grid);

- drag a text box from the toolbox on the centre cell of the grid (i.e. at
row 2, column 2);

instead of the edit box to be placed in the centre cell, it is placed in the
top left row (row 1, column 1).

What's more, when I look at the source code for the page, it *does* tell me
that the control *is* in the centre. The reason it appears not to display
correctly is that it is css position attribute is *absolute*, not
*relative*.

Is there any way I can make the attribute relative by default when I drag
and drop controls into layouts?

Thanks in advance,

Akin
--
akyak at aksoto dot idps dot co dot uk
Aug 5 '07 #1
1 1447
Yes, this is done in Visual Studio's "Tools|Options" dialog box.
It's under the HTML Designer, CSS Positioning option.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Silicon Strawberry" <no****@blackhole.comwrote in message
news:zW******************@newsfet01.ams...
Hello,

When I do the following:

- create a layout grid by going 'Layout' 'Insert Table';

- accept the default settings (3 x 3 grid);

- drag a text box from the toolbox on the centre cell of the grid (i.e. at
row 2, column 2);

instead of the edit box to be placed in the centre cell, it is placed in
the top left row (row 1, column 1).

What's more, when I look at the source code for the page, it *does* tell
me that the control *is* in the centre. The reason it appears not to
display correctly is that it is css position attribute is *absolute*, not
*relative*.

Is there any way I can make the attribute relative by default when I drag
and drop controls into layouts?

Thanks in advance,

Akin
--
akyak at aksoto dot idps dot co dot uk
Aug 13 '07 #2

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

Similar topics

3
by: Joe Au | last post by:
How to place the web user controls on the web form freely the location I want? Especially, if I get more than one web user controls. Thanks. Joe.
1
by: John Dalberg | last post by:
I have a datagrid plus a button to save the contents of the grid to the database. My code gets blanks in the textbox field. I am not sure why. Also I don't know why dgi.Cells.Controls &...
2
by: mystical_potato | last post by:
From VS.NET 03 AND VB.NET I added a dropdown list to a data grid control in response to the EditCommand event to force users to pick values from a list and not type them in. I used the...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
3
by: keithb | last post by:
My code dynamically adds template fields to a GridView control. Everything seems to work OK, except when updating, because I haven't found a way to reference the dynamically added textboxes....
15
by: Arpan | last post by:
Consider the following code which retrieves data from a SQL Server 2005 DB table & displays it in a DataGrid: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)...
0
by: Silicon Strawberry | last post by:
Hello, I posted this a while ago, but I haven't got a response yet. When I do the following: - create a layout grid by going 'Layout' 'Insert Table'; - accept the default settings (3 x 3...
7
by: lawpoop | last post by:
On Mar 11, 6:58 pm, Bergamot <berga...@visi.comwrote: Berg, thanks for taking the time to look at this. Here is the URL ( sorry for the delay in response): http://nerdcraft.net/survey.html ...
1
by: abhi83 | last post by:
Hi , I have a problem hope someone can help. I have created a dynamic view which contains a gridview. This gridview contains a check box column in the Template Field with the help of ITemplate...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.