473,480 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help using interfaces to exchange properties between pages

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
Nov 19 '05 #1
0 836

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7058
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail...
1
1286
by: Julia | last post by:
Hi I have a domain model and I am looking for the correct design patterns to use, The following is my domain model Server-> the is the thread boundaries,the server create a thread the...
6
1928
by: enak | last post by:
I need some help. I have a group of attorneys that need to be able to see the schedule of court dates. These dates are scheduled by the legal assistants. This is what I need: when a legal...
42
3941
by: (PeteCresswell) | last post by:
I skimmed the MS spiel at http://msdn.microsoft.com/sql/express, and noted the part about "all inside the Visual Studio 2005 environment". Do the older SQL server tools for security and stored...
2
2184
by: garyusenet | last post by:
I could do with something similiar, can you tell me if you think this would work for me, and if there's any advantage in working with controls this way than how I currently am. At the moment...
9
5224
by: Brian Hampson | last post by:
I am trying to determine all the groups which the current user has permissions to add a member. Here's my code: foreach (System.DirectoryServices.SearchResult ADSearchres in...
4
1719
by: Mani | last post by:
Hi All, Can anyone please tell me how interface is going to help me in real time senarios. As interface contains only skeleton of methos and it has to be inherited to a class. Is there...
7
3460
by: Wiebe Tijsma | last post by:
Hi, I'm using C# + webDAV to create a draft message to be sent in a user's Drafts folder. I can create the message successfully, however when I open the message in outlook, it doesn't show...
2
3292
by: ChrisO | last post by:
I've been pretty infatuated with JSON for some time now since "discovering" it a while back. (It's been there all along in JavaScript, but it was just never "noticed" or used by most until...
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.