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

z-index automatically set by Visual Studio

I would like to know if it is possible to stop VS from automatically
assigning a z-index to a drop down list when I add it to my web page in
design mode. Or if that is not possible, how can I tell VS to not
change a z-index that I have already modified.

Here is the situation I am running into in VS .NET 2003.

1)Create a new web project
2)Add an html dropdown list from the toolbox to my page
3)Modify the "style" property in the properties window to a lower
value, for example 1
4)everything is ok
5)Add another dropdown list from the toolbox to my page
6)Now check the properties of the first ddl. You'll notice that the VS
has automatically changed the z-index back to 101.

I want the z-index of the first ddl to remain at 1. Can this behavior
be turned off or altered?

Thanks in advance
Mike

Nov 19 '05 #1
6 1324
It was 7 Jun 2005 13:27:26 -0700 when Mike wrote:
I want the z-index of the first ddl to remain at 1. Can this behavior
be turned off or altered?

Vs 2003 like have tendence to change html code in his own vision. Use css
styles to obey the problem.

Ziemowit
Nov 19 '05 #2
I have tried to use a css style to override the style setting. I
modified the css to set the z-index of the "select" element and that
did not work. I also tried creating my own class in the css and then
set the "class" property for the dropdown list to my new class. That
also did not work. I believe the inline style assigned to the dropdown
list is getting a higher priority than the element setting and class
setting in the css file.

The actual html code for the dropdown list looks like this:

<SELECT class="myteststyle" style="Z-INDEX: 101; LEFT: 68px; TOP:
112px">
<OPTION value="test" selected>test</OPTION>
</SELECT>

Any other thoughts?

Thanks,
Mike

Nov 19 '05 #3
What layout you use on page? Grid (default) or flow?

Ziemowit
Nov 19 '05 #4

I'm using the default grid.

<body MS_POSITIONING="GridLayout">

Mike

Nov 19 '05 #5
And this is source of your problem. In grid positioning VS set up
position of each control using absolute positioning in css. Its
innatural and stupid. Set up positioning to flow (or remove positioning
attribute from body - its the same). You will get normal html flow and
VS will leave style property to you.

Ziemowit

Nov 19 '05 #6
Thanks for the feedback.

Nov 19 '05 #7

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

Similar topics

5
by: gj | last post by:
I'm working on a build environment for .NET application where the developers are using visual studio and VSS. In order to pull only the changed modules (and any required dependencies) I want to...
1
by: Edu | last post by:
Hi, If you use Norton Internet Security, you might be having the same problem I'm having when developing on Visual Studio .net. Before, when using vb6, I had only once to set a rule on the...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
7
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them...
4
by: kurt.kurtsmith | last post by:
I am trying to import a tlb from a COM server(exe) I wrote with the following statement: #import "C:\\em2\\EM\\src\\core\\UMOSEFax\\Debug\\UMOSEFax.tlb" no_namespace auto_search the tlh and...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.