473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Nov 17 '05 #1
2 1064
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

Nov 17 '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


Nov 17 '05 #3

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

Similar topics

3
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
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
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
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
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
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
5
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
0
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
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
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...

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.