Hi Steffen,
i tried to add the style using the following code in my aspx page for a
button control and it rendered proper html for me
Code:
private void Page_Load(object sender, System.EventArgs e)
{
Button1.Style.Add("background-color","Beige");
Button1.Style.Add("border-color","Red");
Button1.Style.Add("border-width","2px");
Button1.Style.Add("border-style","solid");
Button1.Style.Add("font-size","XX-Small");
Button1.Style.Add("font-weight","bold");
}
HTML Output:
<input type="submit" name="Button1" value="Button"
id="Button1"
style="background-color:Beige;border-color:Red;border-width:2px;border-style
:solid;font-size:XX-Small;font-weight:bold;" />
Regards
Ashish M Bhonkiya
"Steffen Loringer" <st**************@freenet.de> wrote in message
news:2i************@uni-berlin.de...
Hi group,
I'm using a lot of button.style.add("top","20px") etc. on my aspx page.
A look into the html source of the page on the client shows that
style="top:20px" is used instead of style=".....
How can I avoid " because it's much more data to be send by the
server instead of ' or "??
Thanks a lot
Steffen