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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:38:29+00:00 2026-06-12T00:38:29+00:00

I am looking for some help with an Ektron problem. The scenario is that

  • 0

I am looking for some help with an Ektron problem.

The scenario is that we have a number of widgets which sit on a number of pages. These widgets all take user input. As the user moves through the pages filling out the form we save their field responses into a session state object, these get written to a database later.
When the user gets to the end of the form we want to display all the widgets that they have filled out in a read-only mode. This will act as a summary page.

We can easily set each input control on a widget to be read-only by way of a query string parameter or CMS editable field. We can also load the user responses back into the widget from session state.

What we are having an issue with is loading the CMS edited content back into the widget.

Is there a way that we can reload a previously viewed widget? Maybe by an id using the Ektron API?

We have played around with the WidgetBase.Host object but haven’t been able to make it work. We have also tried saving a whole widget object in to session state and reloading it onto another page but this hasn’t worked also.

  • 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-06-12T00:38:31+00:00Added an answer on June 12, 2026 at 12:38 am

    In your code,
    using Ektron.Cms.PageBuilder;
    using Ektron.Cms.Widget;

    // The CMS Content ID of the first page of your form. 
    const long otherPageId = 1036;
    
    PageModel pm = new PageModel();
    PageData pd = null;
    pm.Get(otherPageId, out pd, false);
    foreach (Ektron.Cms.PageBuilder.WidgetData w in pd.Widgets)
    {
    
        WidgetTypeData myWidgetType;
        IWidgetTypeModel typeModel = Ektron.Cms.Widget.WidgetTypeFactory.GetModel();
        typeModel.FindByControlURL(w.ControlURL, out myWidgetType);
    
        // you may have to prefix the ControlURL with "/Widgets/" + w.ControlURL
        UserControl myWidget = Page.LoadControl(w.ControlURL) as UserControl;
    
        // _host is your page's widget host controller. 
        _host.PopulateWidgetProperties(ref myWidget, ref myWidgetType, w.Settings);
    }
    

    Now you can add myWidget to your page.
    If you want to read its properties. First you need your widget’s type. In your ASPX page, you can use <%@ Reference Control="~/widgets/YourWidget.ascx" %> Then in your code-beside file you can reference the control’s type as widgets_YourWidget. You can type cast myWidget as widgets_YourWidget

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

Sidebar

Related Questions

I am looking for some help. I have found this script that sort of
I'm looking for some help on a problem that I vaguely inquired about before,
looking for some help with images referenced within the stylesheet. I have no problems
-Hello, looking for some help. We currently have a winform app used to do
I need some help. I am looking for a regex that would match the
I am looking for some textarea that help me to translate text to HTML.
Im looking for some help on information on files using Power shell, we have
I am once again looking for some help. I have found this stopwords script
I'm looking for some help understanding how to generate pages from a database to
I'm looking for some help creating a regex that requires 8 char (at a

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.