Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Changing control styles dynamically


Message #1 by "Deepa Das" <Deepa_Das@l...> on Wed, 15 May 2002 22:19:48
Hi,
   I want to set the styles of the controls through code, 
like Textbox1.style.Item("color") = "red". This works, but 
when I specify the top & left, nothing happens.
     TextBox1.Style.Item("top") = "200px"
     TextBox1.Style.Item("left") = "100px"
Isn't this the right way to do it?

Thanx in Advance,
Deepa
   
Message #2 by "Deepa Das" <Deepa_Das@l...> on Wed, 15 May 2002 22:29:39
got it now.control has to be absolutely positioned.


> Hi,
 >   I want to set the styles of the controls through code, 
l> ike Textbox1.style.Item("color") = "red". This works, but 
w> hen I specify the top & left, nothing happens.
 >     TextBox1.Style.Item("top") = "200px"
 >     TextBox1.Style.Item("left") = "100px"
I> sn't this the right way to do it?

> Thanx in Advance,
D> eepa
 >   
Message #3 by "Subraya Hegde" <subrayah@i...> on Thu, 16 May 2002 10:36:17 +0530
Try like this:

 TextBox1.Style("top") = "200px"
 TextBox1.Style("left") = "100px"

-HegdeS


  Return to Index