Text box in datalist doesn't show value

Posted by Shoyebaziz123 under ASP.NET on 2/25/2013 | Points: 10 | Views : 1215 | Status : [Member] | Replies : 0
Hi All,

I am using datalist , while i am inserting value text box shows blank value

foreach (DataListItem item in dataEquipment.Items)
{

Label lbleq = item.FindControl("lblequipemntid") as Label;
TextBox txteqp = item.FindControl("txtequipement") as TextBox;

if (txteqp.Text != "")
{
seqpid.Append(lbleq.Text + ",");
seqpval.Append(txteqp.Text.Trim() + ",");
}
else
{
seqpid.Append(lbleq.Text + ",");
seqpval.Append("0" + ",");
}

}
lable show value i am binding it from database , then inserting value into textbox and clicking insert button , value of lable show but textbox is empty




Responses

(No response found.)

Login to post response