Author: mohit.choudhary | Posted on: 6/6/2010 6:19:18 PM | Views : 264

Hello everybody,
Iam a asp.net self+beginner learner so please bear with me for now. Iam trying to test a small thing in which Iam trying to retrieve the ID's of the controls in Page.Controls collection but its not working, here is the code:
protected void btn_submit_Click(object sender, EventArgs e) { string name = " "; foreach (Control c in Page.Controls) { name += childc.ID.ToString() + ","; } lbl_DisplayControls.Text = name; }
Iam sure iam missing something here. Thanks in advance for the help.

...

Go to the complete details ...