Save Data of TextBox those are Dynamically created
-
I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)
-
I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)
-
I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)
KhandelwalA wrote:
...now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?.
For Dynamically created TextBox, You need to keep in mind some point ! You have to create the Textbox
Before Page Load
. Create your text box inPage_PreInit()
, otherwise, you will never get the ViewState and Postback Data. BecausePostback data and View state data loads just before the Page_Load
. Hope this will help you !cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article