Hello everyone I have 2 usercontrols on a wepage in .net, how can I for example pass values between those to usercontrols clientSide, Does somone know about some demo code which can manage this, Regards Jon Sveinsson
well depending on how you wanted to go about it, i can think of a couple of possibilities: depending on your setup, maybe using xml or a plain file, writing to it and then reading from client. this would have to have some sort of constraint, or you would end
up reading and writing to the same file at the same time. i currently have a system set up to open a socket from my web page to my server for transmitting data. this might also be a possibility for you.
Programmer
Compcentrics
The two most powerfull words on the internet are "Search" and "Engine"
I would recommend treating your client-side code like you do your server-side code: 1. Decide on the interface you want to make public. 2. Implement that interface. Ex: Control1 has client side-methods: GetCurrentSelectedItem SetCurrentSelectedItem Control2
can then interact with Control 1 by calling those methods.
jonhsv
Participant
770 Points
156 Posts
Passing values between usercontrols client side
Mar 26, 2004 10:01 PM|LINK
msamford
Participant
1057 Points
210 Posts
Re: Passing values between usercontrols client side
Mar 27, 2004 01:48 AM|LINK
Compcentrics
The two most powerfull words on the internet are "Search" and "Engine"
stiletto
All-Star
16995 Points
3304 Posts
Re: Passing values between usercontrols client side
Mar 28, 2004 03:26 AM|LINK