Webboy2008
asked on
asp.net / c# / usercontrol
LblItem.Text = LblItem.Text + "<input type=text name=" + "TxtItem_" + i + " class=TextBoxBgColor id=" + "TxtItem_" + i + " value=" + Request.Form["TxtItem_" + i.ToString()] + "><br />";
Instead of <input....>
I prefer using asp server input control like <asp:textbox>...</asp:text box>
1. How can I do that?
2. How can i code a way to tab horizontally?
now it is tabbed vertically.
Thanks
Instead of <input....>
I prefer using asp server input control like <asp:textbox>...</asp:text
1. How can I do that?
2. How can i code a way to tab horizontally?
now it is tabbed vertically.
Thanks
int TotalCount = int.Parse(Ddl_TotalItem.SelectedValue);
for (int i = 0; i < TotalCount; i++)
{
LblItem.Text = LblItem.Text + "<input type=text name=" + "TxtItem_" + i + " class=TextBoxBgColor id=" + "TxtItem_" + i + " value=" + Request.Form["TxtItem_" + i.ToString()] + "><br />";
LblDescription.Text = LblDescription.Text + "<input class=TextBoxBgColor name=" + "TxtDescription_" + i + " id=" + "TxtDescription_" + i + "><br />";
LblTotalUnit.Text = LblTotalUnit.Text + "<input class=TextBoxBgColor name=" + "TxtTotalUnit_" + i + " id=" + "TxtTotalUnit_" + i + "><br />";
LblUnitMeasure.Text = LblUnitMeasure.Text + "<input class=TextBoxBgColor name=" + "TxtUnitMeasure_" + i + " id=" + "TxtUnitMeasure_" + i + "><br />";
LblQuantity.Text = LblQuantity.Text + "<input class=TextBoxBgColor name=" + "TxtQuantity_" + i + " id=" + " id=" + "TxtQuantity_" + i + "><br />";
LblUnitPrice.Text = LblUnitPrice.Text + "<input class=TextBoxBgColor name=" + "TxtUnitPrice_" + i + " id=" + "TxtUnitPrice_" + i + "><br />";
LblAmount.Text = LblAmount.Text + "<input class=TextBoxBgColor name=" + "TxtAmount_" + i + " id=" + " id=" + "TxtAmount_" + i + "><br />";
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER