Change style values in ASP.NET

G

Grey

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..
 
J

Jos

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")
 
L

Lars Netzel

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" <[email protected]> skrev i meddelandet 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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top