I am generating dynamically textboxes and adding them to a placeholder as below.
TextBox txt = new TextBox();
txt.ID = "txt" + ds.Tables[0].Rows[i]["id"].ToString();
txt.Width = 250;
txt.ToolTip = ds.Tables[0].Rows[i]["TotalMarks"].ToString();
phMemberTextboxes.Controls.Add(txt);
phMemberTextboxes.Controls.Add(new LiteralControl("\n<br />"));
i want to access the values from these textboxes. and need to check if the textbox value is less than tooltip value. If so need to reset textboxes.
How can i do so?
When u add dynamically generated controls to placeholder, their IDs get changed, you have to set control’s ClientID first to access it at client side:
Then in your javascript: