Link to home
Start Free TrialLog in
Avatar of Webboy2008
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:textbox>

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 />";
            }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Webboy2008
Webboy2008

ASKER

but i need "<br>" at the end of every control.