I have this code to add a new TextBox to my UserControl:
/// <summary>
/// Create a new TextBox
/// </summary>
/// <returns>a new TextBox with the right name attribute</returns>
private TextBox createTextBox()
{
TextBox textbox = new TextBox();
textbox.Attributes["name"] = name + "_" + (textBoxList.Count + 1);
textbox.ID = name + "_" + (textBoxList.Count + 1);
return textbox;
}
on the output HTML the "name" attribute of this TextBox is changed, and the UserControl name is added...
<input name="multipleTextBox$test_1" type="text" id="multipleTextBox_test_1">
how can i avoid the "multiplartTextBox$" part of the name to be added ? it's important since i need my unique name to be right...