0

I am developing run time message page creation. Here I'm creating run time div with check box for each messages. But I'm using this one to get runtime. CheckBox cb = (CheckBox)this.FindControl(n) as CheckBox; But i can't get it.

1 Answers1

0

You should create your dynamic control every time on Page_Init if you would like to access them after Postback.

See link below for details:
http://msdn.microsoft.com/en-us/library/hbdfdyh7%28v=vs.100%29.aspx

Here you can see the same problem.

Community
  • 1
  • 1
Pavel Timoshenko
  • 721
  • 6
  • 13