473,320 Members | 1,879 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,320 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 15 '05 #1
2 1260
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 15 '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 15 '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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.