By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

how to access a dynamic-created html checkbox in code?

P: n/a
I created some checkboxes(<input type=checkbox>) dynamically,and then I'd
like to access these checkboxes in code behind using C#.
For they are not standard controls like Windows Checkbox, I can't catch it
by FindControl().....how can i do this?
Many thanks a lot!

By trank
tr***@dynamic-x.net
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Unless you created these checkboxes as some sort of Server Control, you
won't be able to access them in the CodeBehind class, as they will not be
members of your Page class.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"trank" <tr***@dynamic-x.net> wrote in message
news:#M*************@TK2MSFTNGP10.phx.gbl...
I created some checkboxes(<input type=checkbox>) dynamically,and then I'd
like to access these checkboxes in code behind using C#.
For they are not standard controls like Windows Checkbox, I can't catch it
by FindControl().....how can i do this?
Many thanks a lot!

By trank
tr***@dynamic-x.net

Nov 18 '05 #2

P: n/a
Hi, tran

Try to catch it through Request.Form("yourcheckbox")

Bin Song, MCP
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.