I want to Iterate through all the textboxes and return their IDs.
I tried every possibility I could but I was unable to retrieve their IDs.
Here is my code, which returns nothing.
Dim ctrl as new Control
for each ctrl in me.tabpanel1.controls
if typeof ctrl is textbox then
msgbox(ctype(ctrl,textbox).ID.ToString)
end if
next
Any idea what am I missing ?
Best Regards,
Luqman
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"Luqman" <pear...@cyber.net.pk> wrote in message
news:u%23FCA5x...@TK2MSFTNGP06.phx.gbl...
For every control in Tab Panel, it just returns system.web.ui.control type,
why its not returning system.web.ui.textbox ?
You can check with the following code.
Dim ctrl as new Control
for each ctrl in me.tabpanel1.controls
msgbox (ctrl.gettype.tostring)
Next
Best Regards,
Luqman
"Cowboy (Gregory A. Beamer)" <NoSpamM...@comcast.netNoSpamM> wrote in
message news:eh6%239m6pI...@TK2MSFTNGP06.phx.gbl...