Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Need help using interfaces to exchange properties between pages

Reply
Thread Tools

Need help using interfaces to exchange properties between pages

 
 
darrel
Guest
Posts: n/a
 
      01-21-2005
Thanks to some help from Karl yesterday, I've discovered the use of
Interfaces to allow usercontrols to communicate information between them
using the Interface as the 'parent' rather than the aspx class.

I don't quite understand properties, though. ;o)

This is what I have thus far:

I declared a interface:

-----------------------------------------------
Public Interface IGetGlobalPageProperties
Property ContentID()
End Interface
-----------------------------------------------

On my page.aspx, I implemented it:

-----------------------------------------------
Property contentID() as object Implements IGetGlobalPageProperties.contentID
get
???
End Get
set
???
end set
End property
-----------------------------------------------

The ??? is where i'm stumped. What I now want to happen is that one of my
usercontrols is going to set some properties, and that these properties will
then be read by other usercontrols.

How do I set the 'contentID' property in the above interface implementation?
Can the above read the contentID string located in the usercontrol?
(userControlClass.contentID?)

-Darrel


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using interfaces for sharing properties Part II... darrel ASP .Net 11 01-25-2005 08:34 PM
Exchange Links < Western Cartoon Cards > Exchange Links www.westerncartooncards.ca HTML 2 07-12-2004 07:59 PM
Exchange data between ASPX pages with no refresh =?Utf-8?B?RGltaXRyaXMgUGFudGF6b3BvdWxvcw==?= ASP .Net 1 06-29-2004 03:09 PM
Exchange 5.5 with Exchange 2000 Cluster problem Jose Luis Microsoft Certification 0 02-13-2004 10:23 AM
help: My exchange lost M: and exchange can not start winman MCSE 9 07-30-2003 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57