RenderBeginTag

S

shapper

Hi,

I am creating a custom control and I am changing the begin tag from
<span> to <div>:

Public Overloads Overrides Sub RenderBeginTag(ByVal writer As
HtmlTextWriter)

writer.Write("<div>")

End Sub

The problem is I want the control properties to the <div> tag.

For example, when I place the control in a web page:
MyControl.Id = "myControl"
MyControl.CssClass = "myControl"
MyControl.BackColor = White

I want those properties to be applied to the <div>. Like the div would
be a panel.

Any idea?

Thanks,
Miguel
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top