Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:32:29+00:00 2026-05-25T00:32:29+00:00

I was wondering is there is possible to couple together two web controls (ascx)

  • 0

I was wondering is there is possible to couple together two web controls (ascx) so they would react on each other changes. I have in mind scenario similar to validation controls, where (in validation control) I select available control to be validated.

Now I would like to do same in my web controls. I have control A and control B. Scenario is that when I change something in control A, control B will be updated. Iam creating controls A and B as WebControls (ascx). I would like (on design time) put two controls (A and B) on webform, and select in control A coupling with control B, so when some event occurs in control A, control A checks if control B is not null and “does things to it”.

Is this applicable for WebControl type controls ?! I assume that I should use some attributes on properties of control A, but where to store control B in control A ?! ViewState and Context.Items require controls to be serializable…

Any ideas ?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:32:30+00:00Added an answer on May 25, 2026 at 12:32 am

    You can pass the control id from one control to another. Then you can force the coupled controls to inherit some base class and use FindControl to get an instance of each other. I believe this is how databound controls work with the DataSource controls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there was any possible way to get the number (count)
I was wondering if there is a possible optimization where the compiler does not
I was wondering ( if possible ) if there was a program/tool/utility that when
I'm using tomcat and have a couple jsp pages. I'm wondering if it's possible
I was just wondering if there was a possible way to add a custom
I have a TreeView and a couple of other controls like TextBox es and
I've been searching the web and not finding any answers (there were a couple
Possible Duplicate: Android - viewing SQLite databases on device? I'm wondering if there is
I'm wondering if there's a solution to this: (possibly not, but you never know!)
Wondering if there is any way to get the lambda expressions that result from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.