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

  • SEARCH
  • Home
  • 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 431101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:56:28+00:00 2026-05-12T19:56:28+00:00

I have a page with 2 web controls that intentionally have no knowledge of

  • 0

I have a page with 2 web controls that intentionally have no knowledge of each other. Each control also has its own helper class to take care of events and such. Only 1 of the controls (EditBox) has a “save” button on it and when it saves, it needs to grab data from the other control (MceEditorAlpha) on the page, how do I do this?
The MceEditorAlpha control has SaveMessage() on it which will retrieve data from the EditBox control and save it in its helper class object, however, I don’t know how to call SaveMessage() from the helper class.

Here is the control that does not have a save button on it.

    public partial class MceEditorAlpha : System.Web.UI.UserControl
    {
      public MceEditor Mce { get; set; }

      public void SaveMessage()
      {
          if (Mce == null)
              Mce = new MceEditor();
          Mce.Text = tbDescription.Text;
      }
    }

Now, in the helper class for MceEditorAlpha I have an event handler that fires when the “save” button on the EditBox control is pressed. What I need to do is get this event to trigger SaveMessage() in the class listed above. Do I have to create an event in MceEditor and a handler in MceEditorAlpha above?

    public class MceEditor : IMessageBroadcaster
    {
      public string Text { get; set; }

      public void OnEditBoxSave(object sender, EventArgs e)
      {
          //Handle the event from the EditBoxSave "save" button_click
      }
    }
  • 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-12T19:56:28+00:00Added an answer on May 12, 2026 at 7:56 pm

    Well as i see it MceEditorAlpha has a referrence to MceEditor. To be able to recieve notifications from it make MceEditor expose a OnSave event and subsribe to it from MceEditorAlpha

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

Sidebar

Ask A Question

Stats

  • Questions 234k
  • Answers 234k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use a cookie as well as a session. Cookie must… May 13, 2026 at 5:57 am
  • Editorial Team
    Editorial Team added an answer Richard is saying this: Hello <? ?> Jello ...after PHP-parsing… May 13, 2026 at 5:57 am
  • Editorial Team
    Editorial Team added an answer Shame the 'file' url isn't supported - since this actually… May 13, 2026 at 5:57 am

Related Questions

Looking for some direction here as I'm running into some migration problems. We have
I have a page which contains some search fields to query a database, and
As an extension to this question here Linking JavaScript Libraries in User Controls I
Is there some method to issue a screen capture(browser window content only) from the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.