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

Change style values in ASP.NET

I want to know that is it possible to change the values of STYLE attributes.
I want to change the position of panel object when I click a button....is it need to use STYLE to change the position.
e.g.
style="Z-INDEX: 102; LEFT: 80px; POSITION: absolute; TOP: 32px"
Million Thanks..
Nov 18 '05 #1
2 3114
Jos
"Grey" <er*****@i-cable.com> wrote in message news:Oq**************@TK2MSFTNGP09.phx.gbl... I want to know that is it possible to change the values of STYLE attributes. I want to change the position of panel object when I click a button....is it need to use STYLE to change the position. e.g.
style="Z-INDEX: 102; LEFT: 80px; POSITION: absolute; TOP: 32px"


Try this (VB):

Panel1.Style.Add("Left","100px")

--

Jos
Nov 18 '05 #2
You can also try this:

Since you want to do this on the server you could just add the whole style attribute in runtime with the WebControl.Attributes.Add() in a Function or Sub and treat the values with normal variables.

/Lars Netzel

"Grey" <er*****@i-cable.com> skrev i meddelandet news:Oq**************@TK2MSFTNGP09.phx.gbl...
I want to know that is it possible to change the values of STYLE attributes.
I want to change the position of panel object when I click a button....is it need to use STYLE to change the position.
e.g.
style="Z-INDEX: 102; LEFT: 80px; POSITION: absolute; TOP: 32px"
Million Thanks..
Nov 18 '05 #3

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

Similar topics

0
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal:...
10
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
15
by: lawrence | last post by:
Sorry for the dumb question but I'm new to Javascript. I wrote this script hoping to animate some div blocks on a page. You can see the page here: http://www.keymedia.biz/demo.htm Can anyone...
2
by: Grey | last post by:
I want to know that is it possible to change the values of STYLE attributes. I want to change the position of panel object when I click a button....is it need to use STYLE to change the position. ...
3
by: Simon Gare | last post by:
Hi, trying to hide zero values by changing the colour of the font, problem is it is still printing in a light grey colour? Code below but cant work out where it is going wrong. <td...
4
by: alex.kemsley | last post by:
Dear all, I am a very novice javascriper and have cobled this together from various places. I didnt expect it to work but hopefully will give you an idea of what i want to achive. I need 5 links...
0
by: =?Utf-8?B?QnJpYW5ESA==?= | last post by:
Hi I am trying to find a way to change the background color of a cell (flash or blink) when its value has changed (by user or data update). I need to be able to do this for more than one cell...
5
by: moondaddy | last post by:
I have a custom control where users can set the backcolor of one of it's UI elements via a DP I created. One of the colors they can pick is a brush called CustomGradient where I would set the DP...
15
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an...
10
by: mukeshrasm | last post by:
Hi the code written below is for calculating the number of days remain for a particular event based on the specific local time i.e. time in new york or time in london. <style style="text/css">...
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
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: 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.