473,396 Members | 1,608 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,396 software developers and data experts.

comuncate web custom controls

Hi to all....

I have a webform and inside 2 webcontrols like this....

Webform.aspx
|----------------------------------------------------
| Webcontrol1 |
| ____ |
| | | |
| |___ | |
| Webcontrol2 |
| _____________ |
| | | |
| | | |
| |____________| |
----------------------------------------------------

The webcontrol1 its a web custom control that create some links...
The webcontrol2 its some dinamic part, for example must show data from a database....
My dude is, how its the way to obtain that when you click in a link of the webcontrol1, the webcontrol2 show information depending the link... I dont know how to comunicate web custom controls....

Thanks to all
Josema.
Nov 18 '05 #1
1 870
If you want this behavior to occur on the client side you'll need to
use some Javascript and DHTML.This is one way for the two controls to
communicate but you'll need to be careful with the ids you use to
manipulate objects in the other control.

A cleaner solution would be to post back to the server and "bubble"
the event from WebControl1 up to the page. Then the page can take the
nessecary steps (method calls, property changes) on Webcontrol2.

Take a look at "Bubbling an Event"
http://msdn.microsoft.com/library/de...mmandevent.asp

HTH,
--
Scott
http://www.OdeToCode.com

On Thu, 29 Jan 2004 02:06:12 -0800, Josema
<an*******@discussions.microsoft.com> wrote:
Hi to all....

I have a webform and inside 2 webcontrols like this....

Webform.aspx
|----------------------------------------------------
| Webcontrol1 |
| ____ |
| | | |
| |___ | |
| Webcontrol2 |
| _____________ |
| | | |
| | | |
| |____________| |
----------------------------------------------------

The webcontrol1 its a web custom control that create some links...
The webcontrol2 its some dinamic part, for example must show data from a database....
My dude is, how its the way to obtain that when you click in a link of the webcontrol1, the webcontrol2 show information depending the link... I dont know how to comunicate web custom controls....

Thanks to all
Josema.


Nov 18 '05 #2

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

Similar topics

2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
12
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.