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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:01:04+00:00 2026-05-16T17:01:04+00:00

A non-developer wants the ability to modify scripts that users read on several screens.

  • 0

A non-developer wants the ability to modify scripts that users read on several screens.

For example, the first script may read, “Thanks for calling, how may I help you?” and contain some input elements. After clicking a “Next” button on this screen, they are presented with another form with another script with more input elements.

How can they “insert” a screen in between (or after or before) the two screens mentioned above with a lightweight XML-style language read from an external file? This file would contain simple, non-developer readable tags like <text>blah blah blah</text>, <button>Next</button> surrounded by <screen></screen> that I could translate into hide-able and show-able <div> tags. It should also be cache-able so all screens can load hidden when the user logs in or some earlier time in the application process.

All I’ve come up with so far is jQuery in the button.onclick’s to hide the current div and show the next. I’m unsure how to use MVC to shove all this data down at the client at some prior time. Cookies are too small for caching big chunks of text, I think. Should I be looking into frames ::shudder::?

Basically, this .NET MVC app needs to dynamically cache views based on an external source to create a “dynamic” workflow of screens able to be modified by non-developers. It is ok to force the users to log out and back in to re-cache these screens.

Please let me know if this is unclear, I’m happy to elaborate.

  • 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-16T17:01:05+00:00Added an answer on May 16, 2026 at 5:01 pm

    Here’s what you could try:

    Start by designing each page you would like to have with its input fields. Then you could define the ViewModels, the Controllers and the corresponding Views. It might look something like this (oversimplified):

    ViewModels:

    /// <summary>
    /// Represents a button with its text and 
    /// the controller name it will redirect to
    /// </summary>
    public class Button
    {
        public string Text { get; set; }
        public string Controller { get; set; }
    }
    
    /// <summary>
    /// Represents the page with a header and a list of buttons
    /// </summary>
    public class Page
    {
        public string Header { get; set; }
        public IEnumerable<Button> Buttons { get; set; }
    }
    
    /// <summary>
    /// Each view model will have page metadata
    /// </summary>
    public abstract class BaseViewModel
    {
        public Page Page { get; set; }
    }
    
    public class Page1ViewModel : BaseViewModel
    {
        // Put any properties specific to this page
        // which will be used for the input fields
    }
    
    public class Page2ViewModel : BaseViewModel
    {
        // Put any properties specific to this page
        // which will be used for the input fields
    }
    
    ...
    

    Then create a repository which will parse the XML (the implementation is left for brevity):

    public interface IPagesRepository
    {
        Page ReadPage(string pageName);
    }
    

    Then here’s how a page controller might look like:

    public class Page1Controller : Controller
    {
        private readonly IPagesRepository _repository;
        // TODO: to avoid repeating this ctor you could have 
        // a base repository controller which others derive from
        public Page1Controller(IPagesRepository repository)
        {
            _repository = repository;
        }
    
        public ActionResult Index()
        {
            var model = new Page1ViewModel();
            model.Page = _repository.ReadPage("page1");
            //model.Page = new Page
            //{
            //    Header = "Thanks for calling, how may I help you?",
            //    Buttons = new[] 
            //    {
            //        new Button { Text = "Next", Controller = "Page2" },
            //        new Button { Text = "Address", Controller = "Page3" },
            //    }
            //};
            return View(model);
        }
    
        [HttpPost]
        public ActionResult Index(Page1ViewModel model, string redirectTo)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }
            return Redirect(redirectTo);
        }
    }
    

    And the last part is the corresponding view:

    <script type="text/javascript">
    $(function () {
        // when a navigation link is clicked set the redirectTo 
        // hidden field to the value of the controller we
        // want to redirect to and submit the form
        $('.nav a').click(function () {
            $('form :hidden[name=redirectTo]').val(this.href);
            $('form').submit();
            return false;
        });
    });
    </script>
    
    <h2><%: Model.Page.Header %></h2>
    
    <%: Html.ValidationSummary() %>
    
    <% using (Html.BeginForm()) { %>
        <%: Html.Hidden("redirectTo") %>
        <!-- TODO: Put here the specific input fields for this page -->
    <% } %>
    
    <div class="nav">
        <%: Html.EditorFor(x => x.Page.Buttons) %>
    </div>
    

    And the Button.ascx Editor Template which will render the navigation links:

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SomeNs.Models.Button>" %>
    <!-- Here we assume Index action is setup by default in the routes -->
    <%: Html.ActionLink(Model.Text, "index", Model.Controller) %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a non-developer building a simple Access 2003 database for an NGO that works
I'm not sure if this is possible (complete non-flash developer speaking), but we have
I am playing with learning ASP.NET MVC as a non-web developer. I am trying
Using non-thread safe libraries with threads. Say I have a library that makes a
I wrote a RESTful servlet, and the UI developer wants to save the logged-in
I am working as iOS freelance developer for one non-IT company and now my
I've inherited a lot of web projects that experienced high developer turn over rates.
Background: My employeer at my non-programming job knows that I am an undergraduate CS
I am trying to explain to a non-developer the difference between an API an
I'm a C# developer new to F#,I understand that in .net the strings are

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.