J
Jan Limpens
hi!
I've got a Web Custom Control within which I'd like to use LinkButtons.
This looks more ore less like this...
protected override void Render(HtmlTextWriter output)
{
output.WriteLine();
output.WriteFullBeginTag("P");
LinkButton b = new LinkButton();
b.Text = "Bla";
b.RenderControl(output);
output.WriteEndTag("P");
}
As a result I get a HTML Link which is way to plain...
<P><a>Bla</a></P>
There is no functionality behind this, no javascript to handle the
postback, no id, no nothing....
Even setting Command Names, Arguments and Click Events does not help...
Any help? How can I use working Linkbuttons within a Web Custom Control?
Jan
I've got a Web Custom Control within which I'd like to use LinkButtons.
This looks more ore less like this...
protected override void Render(HtmlTextWriter output)
{
output.WriteLine();
output.WriteFullBeginTag("P");
LinkButton b = new LinkButton();
b.Text = "Bla";
b.RenderControl(output);
output.WriteEndTag("P");
}
As a result I get a HTML Link which is way to plain...
<P><a>Bla</a></P>
There is no functionality behind this, no javascript to handle the
postback, no id, no nothing....
Even setting Command Names, Arguments and Click Events does not help...
Any help? How can I use working Linkbuttons within a Web Custom Control?
Jan