Quotation mark in html

  • Thread starter Steffen Loringer
  • Start date
S

Steffen Loringer

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&quot is used instead of style=".....

How can I avoid &quot because it's much more data to be send by the
server instead of ' or "??


Thanks a lot

Steffen
 
A

Ashish M Bhonkiya

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top