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

Home Posts Topics Members FAQ

Unable to assign value to a property

Hi

I have a object (classA, marshalbyref) that is passed from the server. I
tried assigning a value to one of the object's property however, the
changes is not reflected.

I tried assigning this object to a variable of the same type and do the
assignment again. This works, but the original object still maintain the
same property value.

In additional to that, i also found out that the object i get from the
server is not class A type, instead the hint shows that it is a
System.Runtime.Remoting.Proxies.__TransparentProxy .

I'm newbie to VB.NET. Can anyone give me a hints on what is happening?

Thanks in advance.

From,
Hon Yuen, Ng
Nov 21 '05 #1
1 1437
Hi,

I don't think you can do what you want here. If you are marshalling between
two different apps on the same machine then you should be seeing the
changes. But since you mentioned "server" it sounds like you have two
different machines. If this is the case they won't be able to share the
object ByRef because they can not reference each other's memory. In order
to reflect changes you'll need to use a client/server approach. For example
saving the object to a DB with a date/time updated field. Whenever your app
on the server or client uses the object it first checks to see if it's
date/time field matches what is in the DB. If it does you know it is good,
if it doesn't then you'll need to grab the new data before using it. Good
luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Hon Yuen, Ng" <hy**@tm.net.my> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I have a object (classA, marshalbyref) that is passed from the server. I
tried assigning a value to one of the object's property however, the
changes is not reflected.

I tried assigning this object to a variable of the same type and do the
assignment again. This works, but the original object still maintain the
same property value.

In additional to that, i also found out that the object i get from the
server is not class A type, instead the hint shows that it is a
System.Runtime.Remoting.Proxies.__TransparentProxy .

I'm newbie to VB.NET. Can anyone give me a hints on what is happening?

Thanks in advance.

From,
Hon Yuen, Ng

Nov 21 '05 #2

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

Similar topics

21
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
0
by: JJ_377 | last post by:
The following doesn't assign value to the dropdownlist - WHY? ___________________________________________________________________ In a user control (ascx named USACustomer) : Public Property...
0
by: gladiator | last post by:
Hello Here I wrote an example by which an const variable can be assigned witha value but I can not understand how can it assign value. #include<stdio.h> int main(void) { const int i=10;...
4
by: harpreet1433 | last post by:
i have a arraylist what i want to do is assign value of textarea to arraylist ie arr(0)=value of textarea(in javascript) is it possible thanks
1
by: harpreet1433 | last post by:
how to assign value to a hidden field of stuts form what i actually want to do that assign it through javascript document.all.fieldname=value works well under IE and Netscape but in...
1
by: No_Spam | last post by:
I have an MS Access form attached to a table. I have a text box which has its control source set to a field in the table... However, at run time if certain things change, I want to the change the...
1
by: imagirlgeek | last post by:
I sure hope someone else has seen this, because I'm about to go crazy! I am unable to open Property Sheets anywhere in any of my databases...even a brand new one. Right-click Properties brings...
4
by: Aamir Mahmood | last post by:
Hi I am unable to access the HasValue and Value properties in an Nullable object. int? i = 9; object value = i; if ((value as Nullable).HasValue) { ... }
7
vikas251074
by: vikas251074 | last post by:
Can I assign value to cookies immediately after selecting a value from list? <select name="vlan_name" style="width:150px "> <%set rs = conn.execute("select vlan_name from vlan_master order by...
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
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
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.