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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:23:11+00:00 2026-06-04T14:23:11+00:00

I have a contest form that is a usercontrol, it sits on page that

  • 0

I have a contest form that is a usercontrol, it sits on page that has several usercontrols on it. When a user clicks a button it displays this form which resides in usercontrol, the div (which is on the page) is hidden at first. The only problem I am running into is when the page post backs it hides the DIV even when there is an error. I need it to keep the DIV open if there is an error, the code logic for form validation is in the usercontrol so how could I access the DIV that is on the page? The page is a masterpage, we dont do any code logic in our masterpages, is there anyway to accomplish this without code on the masterpage?

  • 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-04T14:23:12+00:00Added an answer on June 4, 2026 at 2:23 pm

    Best way would be exposing some property that says if any error occurred on user control or not and setting the Div’s visibility on page itself based on that user control property.

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

Sidebar

Related Questions

I have a small web form that user will enter some patient data and
I have a raw form-data that look like this: ------------V2ymHFg03ehbqgZCaKO6jy Content-Disposition: form-data; name=intro O
This has been plaguing me for a while. I have a page in my
I have an assembly which contains several UserControl objects that I want to be
I have a user control in Silverlight (Form.xaml) that uses labels to show data.
I got this code working! I have a button inside a my UserControl dropped
I have a simple form on a view page, implemented as a user control,
I have a WPF form that is made up of UserControls and not Windows.
Today I realized that I no longer have a Web Content Form option (where
I have a form with a textarea that can contain large amounts of content

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.