kkonkle Posted February 10, 2004 Posted February 10, 2004 I am working on an ASP.Net program while one of my coworkers is out for the week. I don't have much experience with ASP, or anythying .Net. He has a tab system set up with a different form for each tab. The second tab needs to read data from the first one and display it, but the only way he's found to do that is to make those controls "Public Shared" instead of "Protected WithEvents" Every time I edit the form, ASP.Net puts those controls back to "Protected WithEvents" Is there some "proper" way to share the contents of controls between forms that doesn't require me to change the declaration of the controls? I just thought of making a few public functions for the first form that would return the contents of a control, that the second form could call... that seems like it would work just fine. Is that the preferred method? Are there any others? /<evin Quote
Moderators Robby Posted February 10, 2004 Moderators Posted February 10, 2004 Have a look at this sample .... http://www.xtremedotnettalk.com/showthread.php?threadid=78434 Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.