Hello,
I am new to ASP.NET. I am facing a problem when trying to access values of a dynamically created textbox.
Here is my situation
I have the following hierarchy Page -> User Control -> Data List -> PlaceHolder -> TextBox/Drop Down.
I create my dynamic control using a Placeholder. The dynamic controls are created in the ItemDataBound event of the DataList. I am trying to access the values of these dynamic controls in the Save button OnClick event using the PlaceHolder.FindControl ("id"), but with no success. The control is not being found.
After reading few articles I found out that dynamic controls are usually lost when there is a postback event and you have to recreate them.
Can anybody point me in the right in order to solve this issue.
Thanks
Mansoor