Author: ondra | Posted on: 2/8/2010 10:51:14 AM | Views : 278

Hi, I tried to add a style to a asp.net panel like this:
Panel4.Style[HtmlTextWriterStyle.Position] = "absolute; left: " + leftPosition2 + "px; top: " + rightPosition2 + "px";


but the result is this :

<div id="Panel4" style="left:150px;top:300px;position:absolute; left: 0px; top: 300px;">


and I want it to be like this:
<div id="Panel4" style="position:absolute; left: 0px; top: 300px;">

Can you see where is the mistake ?


thanks :)

...

Go to the complete details ...