Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2004, 03:46 AM
Authorized User
 
Join Date: Nov 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web controls in asp.net

hi
i have a problem in geting what controls i have on my webpage
the issue is that i need a function that counts and retrieves the webcontrols type and ID on my webform1.aspx
is that possible.
in VB.NET windows application we have
dim i as integer
for i = 0 to me.controls.count - 1
console.writeline(controls(i))
next
is there any equivalent to this in ASP.NET webapplication?
Thank You

Georges M. Kaddoum
__________________
<GMK>
 
Old February 1st, 2005, 02:52 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It's almost exactly the same. However, you need to do the loop recursively because the controls are nested.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.Net Web Server Controls inside XSLT russmack XSLT 2 December 14th, 2006 10:02 AM
Design Time Support Web Controls in ASP.NET 1.1 jha_arindam ASP.NET 1.0 and 1.1 Professional 0 February 10th, 2006 05:33 AM
Activex controls in asp.net flaco ASP.NET 1.0 and 1.1 Basics 5 April 18th, 2005 08:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.