Click here to Skip to main content
15,900,589 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created dynamic control(TextBox) in grid bt cant find that control in button click using control id(FindControl).

What I have tried:

I created dynamic control(TextBox) in grid bt cant find that control in button click using control id(FindControl).
Posted
Updated 29-Feb-16 23:59pm

1 solution

Because button click initiates a postback (full or partial) and you have to recreate those dynamic controls upon postback, otherwise they will be lost (as they are not part of the standard creation chain)...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900