I have a web page where I get a count of total Text box to be added dynamically. I have added a HTML table to which I add rows and cells to place the text box.
I do not wish to add label controls for each text box but wish to place watermark text inside each text box which are dynamically created as an array of text boxes.
Please help me to achieve this. Any code will be much better!
Below code is what I have written which only created text box inside the HTML table control.
//Add row to table
tRow = new TableRow();
tblBokingDet.Rows.Add(tRow);
//Add cell to row
tCell = new TableCell();
tRow.Cells.Add(tCell);
//Add a literal text as control
AddTextBox = new TextBox();
AddTextBox.ID = "txtName" + i;
tCell.Controls.Add(AddTextBox);