473,503 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamic properties

Hi all
Is there a way to catch all property requests and resolve at runtime
internally within the class?

I ask because I'm looking into creating a dynamic CrystalReport web service,
and all the sections are explicitly named properties in the generated asmx
rather than being indexed.

Thanks
Jul 21 '05 #1
2 1979
It sounds like you need to explicitly code the access to dynamic properties
instead of letting VS.NET do it for you behind the scenes. Then, in the
"Get" code, read your property values from the web.config file yourself.

"Leon Jollans" <Le**********************@xaman.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all
Is there a way to catch all property requests and resolve at runtime
internally within the class?

I ask because I'm looking into creating a dynamic CrystalReport web service, and all the sections are explicitly named properties in the generated asmx
rather than being indexed.

Thanks

Jul 21 '05 #2
I'm not sure I follow - what I'm wondering is if (via reflection or some
such) I could write code like:

public object aValue{
get{
return someIndexer[aValue];
}
}

where aValue is undetermined until the call is made. I wouldn't expect this
(if at all possible) to be simple, and certainly not as syntactically nice
as the theoretical example above, but if mechanisms exist to allow this to
happen, I'd like to find out how - it could be immensely useful.

Leon

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:e$*************@TK2MSFTNGP11.phx.gbl...
It sounds like you need to explicitly code the access to dynamic properties instead of letting VS.NET do it for you behind the scenes. Then, in the
"Get" code, read your property values from the web.config file yourself.

"Leon Jollans" <Le**********************@xaman.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all
Is there a way to catch all property requests and resolve at runtime
internally within the class?

I ask because I'm looking into creating a dynamic CrystalReport web

service,
and all the sections are explicitly named properties in the generated asmx rather than being indexed.

Thanks


Jul 21 '05 #3

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

Similar topics

3
13699
by: Guy Harwood | last post by:
Hi, I have designed a textbox that inherits from the System.Windows.Forms.Textbox control. when the control is readonly the back color changes to a light blue to indicate that it is frozen. ...
1
1272
by: jm | last post by:
I am using (trying) dynamic properties to store a database connection. However, I don't have a connection object on the form. I just do a OdbcConnection in my code. So I can't use the VS IDE to...
2
1591
by: Codex Twin | last post by:
Hi I am designing a class (Q) which will contain provision for dynamic complex properties. For example, these properties could be any or all of the following complex properties: a)...
1
3136
by: sleigh | last post by:
Hello, I'm building a web application that will build a dynamic form based upon questions in a database. This form will have several different sections that consist of a panel containing one to...
5
1723
by: Nate | last post by:
Good Morning All, What we have is a dynamic business object that has varying numbers and types of properties. What it models is a generic saleable product. Not all products have the same...
3
3304
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
5
2043
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
0
985
by: vnu | last post by:
Hi, Hi, I am working in .net emvironment using vs2005 and vb.net as the language. In one of my project, I need to display the properties of a com object which has dynamic properties(late bind...
3
18680
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
15
10831
by: EDBrian | last post by:
My problem is this. Our clients create different fields they want to collect and we allow them build dynamic filters, reports etc... We run some TSQL to actually create the column and all works...
0
7093
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...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
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
7468
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
5023
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
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
401
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.