CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/17/2004 9:25:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
saphju
Asp.Net User
User Control List3/17/2004 9:25:20 PM

0/0

Hi,

Im doing a VB asp.net application that dynamically loads several user controls that basically gets user inputs and do a simple database saving process. Is there a way from my .aspx file i can get a list of all the user controls loaded so i can call their specific save event from my .aspx file. Code samples would be appreciated since im new to VB asp.net.

Thank you very much guys.

FancyKetsup
Asp.Net User
Re: User Control List3/17/2004 11:28:51 PM

0/0

Not sure what your asking. But probably easiest is to to use TheControlContainer.FindControl("controlID"). Here is an example that finds all Label webcontrols on the form and writes the ID to a label.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Digit As Integer
For Digit = 0 To Page.FindControl("Form1").Controls.Count - 1
If (Page.FindControl("Form1").Controls(Digit).GetType() Is GetType(System.Web.UI.WebControls.Label)) Then
Label1.Text += "<br>Control Id: " & Page.FindControl("Form1").Controls(Digit).ID.ToString()
End If
Next
End Sub


If you are just trying to call a method in your user controls based on a postback then why not just do it in the user control with IsPostBack though? If you need something more sophisticated than that then consider events or public properties to trigger something back at the child user control.
Answering a question increases your knowledge asking a question shows your Intelligence!
master4eva
Asp.Net User
Re: User Control List3/18/2004 12:14:15 PM

0/0

On top of that suggestion, you could do something like this:

private void FindMyControls(Control parent) {
foreach (Control c in parent.Controls) {
if (c is MyUserControl)
((MyUserControl)c).Save();

FindMyControls(c);
}
}

And just call it like so:

FindMyControls(Page);

-- Justin Lovell
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003
Upgrading and Repairing Networks Authors: Terry William Ogletree, Scott Mueller, Pages: 1152, Published: 2001
Middleware Networks: Concept, Design, and Deployment of Internet Infrastructure Authors: Michah Lerner, George Vanecek, Nino Vidovic, Dado Vrsalovic, Pages: 375, Published: 2000
Healthcare Information Systems: Challenges of the New Millennium Authors: Adi Armoni, Pages: 243, Published: 2000
Designing Interfaces: [patterns for Effective Interaction Design] Authors: Jenifer Tidwell, Pages: 331, Published: 2006
Information Networking: Networking Technologies for Enhanced Internet Services : International Conference, ICOIN 2003, Cheju Island, Korea, February 12-14, 2003 : Revised Selected Papers Authors: Hyun-Kook Kahng, Pages: 1032, Published: 2003

Web:
How to populate a list with user controls? - MSDN Forums It occurred to me that maybe this could be accomplished by encapsulating each item's information inside of a user control and then hosting this user control ...
CodeProject: Multi select Dropdown list in ASP.NET. Free source ... Multiselect dropdown list control allows the user to select multiple items from the list and displays the selected items in comma separated format.; ...
SharePoint Cross List Queries in a custom UserControl - Tobias ... Code for the Cross List Query UserControl. Simple enough, huh? Of course you can create webparts, usercontrols, application pages, or any other type of ...
Top 25 Lighthouse Web Sites List - User Control Panel THE Top 25 Lighthouse Web Sites List! List of world's best web sites about lighthouses displaying latest rank, monthly vote count and Featured Lighthouse ...
Heuristics for User Interface Design User control and freedom: Users often choose system functions by mistake and will ... The list is slightly too long for heuristic evaluation but serves as a ...
Access control list - Wikipedia, the free encyclopedia In computer security, an access control list (ACL) is a list of permissions attached ... In some implementations an ACE can control whether or not a user, ...
Top Sites of America Web Sites List - USA User Control Panel User Control Panel. Username Password Forgot your password? ... Vote for THIS web site on Top NC and SC Web Sites List! Bookmark Top Sites of America Web ...
Serialization of UserControl List : control, serializing, usercontrol I am developing an application in C# 2005. I have a usercontrol with many different properties including Color, PointF, Size I have a form with a variable ...
Big Proxy List - User Control Panel Find fast free proxies, Web proxies, anonymous proxies, CGI proxies, HTTP proxies and proxy sites in our list of proxies at Big Proxy List!
Add a List Control to a User Control A user control could wrap an existing List control, and implement the custom logic. There are two important aspects to cover - the interface implementation, ...

Videos:
How to make "Start Menu" menus to open real fast!!! Glitch High Quality: http://www.youtube.com/watch?v=8dzOLaCJHPE&fmt=18 How to make "Start Menu" menus to open real fast!!! It is a Windows XP tweak that yo...
Checked List Box Learn how the CheckedListBox, a new control in Visual Studio .NET, provides a convenient and flexible user interface determining user preferences fro...
Macworld 2007- Steve Jobs introduces iPhone - Part 2 Part 2 of the iPhone introduction. Jobs explains the process of developing the user interface and controls. Very interessting, again. One of the di...
Gerd Leonhard Media Futurist Keynote at Canadian Music Week 2007: End of Control This is part 1 of Gerd's Keynote at Canadian Music Week 2007, in Toronto, Canada, Gerd speaks on The Future of Music, recorded at Canadian Music Week...
Mass Download from Galbadia Hotel Here's how it works: you register an account, go to your user control panel, and get our special tracking links. You can use these links anywhere-- o...
Windows XP User Review Windows XP Find more video product reviews in the Computers or Software categories at www.expotv.com Videopinions are Expo TV members showing and t...
NCAA Football 09 Achievement list 1. Create Stadium Sound Create a custom Stadium Sound event. 20 points 2. Break The Ice Make a Field Goal when "Iced". 10 points 3. QB Quiz Success S...
Creative Labs Zen Touch 20gb MP3 Player User Review 2163 Creative Zen Touch 20g Find more video product reviews in the Electronics or MP3 Players categories at www.expotv.com Videopinions are Expo TV memb...
Digidesign VENUE - D-Show 2.5 Software D-Show™ 2.5 software improves upon the VENUE system's acclaimed operating system by adding support for both D-Show™ and D-Show Profile™ mixing consol...
iPod Shuffle 512 Mb User Review Review of iPod Shuffle. Rate this video or find more video product reviews in the Electronics > MP3 Players categories at www.expotv.com Videop...




Search This Site:










how can i reset users and roles?

error on loading custom module photo gallery from dnn site

quick question about module specific css

dotnetnuke 3.0 where is the photo gallery in rtf editor?

feedback: my initial experience with dnn

menu doesnt show, occasionaly

pdf exporter... should i add as module or control?

catalook store

design change in 3.0 - tabid stuff

anyone lost the import/export function to text/html when upgrading dnn?

using frame instead of iframe

dnn and forms?

skinning question

upgrade from 1.0.10 to 2.0.3 -> lost configuration

sliding leftpane..

perfctrs error

dotnetnuke community forums

authorization code is 0-0

searching for dnn references

dnn 3.0.9 - only home page shows after clicking on other pages

private assembly installer - creating tabs

splash page 3.0.10

datagrid / datalist examples using dnn2 dal?

please help a newbie to get started

unable to edit (dnn 3.0.13)

the module 'urlrewrite' is already in the application and cannot be added again

tab = page?

file manager permission issue==dnn3.0.7

farpoint - spread for web control for dotnetnuke

sql queries to create tables + procedures

  Privacy | Contact Us
All Times Are GMT