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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:32:52+00:00 2026-06-15T11:32:52+00:00

I have a multiview control which I effectively use the same as a wizard

  • 0

I have a multiview control which I effectively use the same as a wizard stepping through 4 panels to complete a form.

Each view has a number of input controls/validator controls. For reuse, these are bundled together as a user control. For instance my email user control contains a panel, with a label, textbox, required validator and regular expression validator.

I know that with the multiview everything is loaded, then controls outside the current view are hidden, however this is causing me a small issue and I’m looking for best suggestions as how to work around it.

Here’s the scenario.

Panel 3 contains a user control called ‘Number’. It has a panel, containing a label, textbox and a custom validator.

The control has properties that can be set (I usually set them in the containing aspx page), and the control is populated on page load.

Aspx page:

<uc4:Number ID="UC_Number" runat="server"
    Label="Monthly Take Home Pay" 
    MinValue="1"
    MaxValue="9999" />

Page_Load of number:

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        SetValidation();
    }
}

The problem I have is in the SetValidation method.

    void SetValidation()
    {
        CusVal_ValueLimits.ErrorMessage = GetErrorMessage();

        if (MinValue > 0)
        {
            ScriptManager.RegisterExpandoAttribute(
                this,
                CusVal_ValueLimits.ClientID,
                "MinValue",
                MinValue.ToString(),
                false);
        }

        if (MaxValue > 0)
        {
            ScriptManager.RegisterExpandoAttribute(
                this,
                CusVal_ValueLimits.ClientID,
                "MaxValue",
                MaxValue.ToString(),
                false);
        }
    }

In order to allow custom validation on the client I add 2 new expando attributes. This causes an issue because the attributes are created but the user control is then hidden by the multiview.

This is not handled well by .net ajax code, and results in a javascript error because the user control referenced is not available, which in turn causes the rest of the javascript on the page to fall on its ar*e.

What I need to know is either, how do I load these user controls safely I.e. when the view is visible, or alter my expando related code to cope with this.

All ideas appreciated.

  • 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-15T11:32:55+00:00Added an answer on June 15, 2026 at 11:32 am

    I resolved this by checking if the usercontrol was visible during pre-render if(this.Visible) and if so calling the expando stuff.

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

Sidebar

Related Questions

I have a MultiView control which has a View in which a DataList is
Have deployed numerous report parts which reference the same view however one of them
I have a .net page with a multiview control. In the first view I
I have a website form (c#) that sits inside a multiview control. The muliview
I have a multiview control with a number of sections. For each section, I
I have a multiview control on my page and a menu to create a
I have this code which adds a x number of views to a Multiview
I have an asp.net page with a multiview control nested within another multiview control.
I have the following structure <asp:UpdatePanel ID=MyUpdatePanel runat=server> <ContentTemplate> <asp:MultiView ID=MyViews runat=server> <asp:View ID=List
I have question here, i design multiview application using view base template. Page 1

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.