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 614241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:05:27+00:00 2026-05-13T18:05:27+00:00

I am working on a project in ASP.NET MVC using C# 3.0. I am

  • 0

I am working on a project in ASP.NET MVC using C# 3.0.

I am using the Dundas Chart Control for OLAP. As the Dundas control does not directly support MVC it is used on a standard ASP.NET page with a codebehind file. This page is displayed in an iFrame of a normal View returned from a Controller Action.

I have a button in the iFrame which submits a form via Ajax (using jQuery) to a method on the controller. I have also written an extension method for the OlapChart which returns the XML of the current report.

What I am looking for is a way of getting the XML produced by the extension method to the Controller Action which handles the Ajax submit.

I have only developed using ASP.NET MVC so I may be missing something obvious with Code Behind and ASP.NET controls.

Thanks.

  • 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-13T18:05:28+00:00Added an answer on May 13, 2026 at 6:05 pm

    I ‘solved’ this by creating an instance of the controller in the code-behind – in this project using a Spring.net IOC objects.xml file and a Spring.net XmlObjectFactory.

    For the button I added an HtmlInputButton to the code-behind and set an onclick event handler. This was made asynchronous using the Dundas OlapManager.GetCallbackEventReference() method combined with a new command handler assigned to the OLAP Chart which provides the calls to invoked the controller methods.

    In the Page_Load() function:

    OlapClient1.OlapChart.Command += new CommandEventHandler(OlapChart_Command);
                SaveDci.Attributes["onclick"] =
                    OlapClient1.OlapManager.GetCallbackEventReference(OlapClient1.OlapChart, "SaveDci", typeof(OlapChart));
                SaveSnapshot.Attributes["onclick"] =
                    OlapClient1.OlapManager.GetCallbackEventReference(OlapClient1.OlapChart, "SaveSnapshot", typeof(OlapChart));
    

    And the OLAP command handler:

    private void OlapChart_Command(object sender, CommandEventArgs e)
        {
            if (e.CommandName.Equals("SaveDci"))
            {
                // Function to call appropriate controller method
                SaveAsData(sender, e);
            }
            if (e.CommandName.Equals("SaveSnapshot"))
            {
                // Function to call appropriate controller method
                SaveAsSnapshot(sender, e);
            }
        }
    

    The iFrame was updated with a response using jQuery and the OlapMananger.ExecuteClientScript() method:

    OlapClient1.OlapManager.ExecuteClientScript("$('#UpdatePanel').text('" + returnMessage + "');");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an ASP.NET MVC project using jQuery. I'm referencing the jQuery VSDoc
I'm currently working on an ASP.NET MVC project using NHibernate and I need to
I'm working in an ASP.NET MVC Beta 1 project, and I've noticed that if
I'm working on an ASP.NET project using MVP architecture. We would like to use
I am working on a project that uses the asp.net ajax control toolkit and
I am working on a ASP.NET MVC website using Nhibernate as my ORM. The
Im working on a web project in ASP .NET MVC 2. In this project
I'm working on an editor page for a project in ASP.NET MVC. I would
We are working on an ASP.NET MVC 3 project and taking advantage of Razor
I'm working on a personal project (C# / ASP.NET) that will use LINQ to

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.