custom control

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

I am creating a custom control using the tag below to create a button

output.RenderBeginTag(HtmlTextWriterTag.Button)

The button gets rendered but would like to put some text on the button.

Can you do it using HtmlTextWriterAttribute? Have not been able to succeed.



thanks
 
output.AddAttribute("value","click me");
output.RenderBeginTag(HtmlTextWriterTag.Button);
output.RenderEndTag();

-- bruce (sqlwork.com)
 
thanks
Bruce Barker said:
output.AddAttribute("value","click me");
output.RenderBeginTag(HtmlTextWriterTag.Button);
output.RenderEndTag();

-- bruce (sqlwork.com)
 

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

Back
Top