T
timor.super
Hi group,
the aspx statement :
<asp:TextBox ID="testTB" runat="server" Text="My test" />
generate html :
<input name="testTB" type="text" value="My test" id="testTB" />
Imagine I want to create a custom web control, extending the TextBox
control to add a custom hidden value.
Something like :
<MyNamespace:MyTextBox ID="testTB" runat="server" Text="My test"
HiddenValue="a value" />
that can generate such html code :
<input name="testTB" type="text" value="My test" id="testTB" />
<input name="hid_testTB" type="hidden" value="a value"
id="hid_testTB" />
How can I render such html code ? (without having to rewritte all
using writer.WriteBeginTag , and other writer.WriteAttribute)
Something like
protected override void ?? (...)
{
RenderTheBaseControl();
RenderTheAddedHiddenField();
}
How can I do ?
Thanks in advance for your help.
S.
the aspx statement :
<asp:TextBox ID="testTB" runat="server" Text="My test" />
generate html :
<input name="testTB" type="text" value="My test" id="testTB" />
Imagine I want to create a custom web control, extending the TextBox
control to add a custom hidden value.
Something like :
<MyNamespace:MyTextBox ID="testTB" runat="server" Text="My test"
HiddenValue="a value" />
that can generate such html code :
<input name="testTB" type="text" value="My test" id="testTB" />
<input name="hid_testTB" type="hidden" value="a value"
id="hid_testTB" />
How can I render such html code ? (without having to rewritte all
using writer.WriteBeginTag , and other writer.WriteAttribute)
Something like
protected override void ?? (...)
{
RenderTheBaseControl();
RenderTheAddedHiddenField();
}
How can I do ?
Thanks in advance for your help.
S.