Button's text

  • Thread starter Thread starter Jenny
  • Start date Start date
J

Jenny

Hi,

I'm using a button, generated in the code behind:

Dim button As New System.Web.UI.HtmlControls.HtmlButton
button.Attributes.Add("value", "I'm a Button")
button.Style.Add("width", "100px")
Page.Controls.Add(button)

The width statement works properly but setting the text on
the button doesn't. I also tried button.Style.Add(("value",
"I'm a Button") but it also not working?

What I'm doing wrong?

Thanks for help

Jenny
 
Back
Top