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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:12:53+00:00 2026-05-17T18:12:53+00:00

I have a Page, containing an UpdatePanel and a Usercontrol which loads another usercontrol,

  • 0

I have a Page, containing an UpdatePanel and a Usercontrol which loads another usercontrol, containing a textbox.

So it’s Page->UpdatePanel->UserControl->UserControl (B)->Textbox

The ValidationGroup for the button and textbox is the same. I call .validate(“answer”) in the codebehind, I’d rather not use the JS validation. If the button is clicked, the value in the textbox is cleared and the error displays, but only on the first click. After that it works fine, but then a different UserControl (B) with the same same setup. The same happens again, on the first click. If I fill in the value again, it stays and I get a postback.

This is bizarre and I can’t think what would cause it, if I add the button as a postbacktrigger (ie: remove the updatepanel), it works normally. I’ve tried setting CausesValidation on the button with no effect and I’m out of ideas.

  • 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-17T18:12:54+00:00Added an answer on May 17, 2026 at 6:12 pm

    This was actually caused by the ID of UseControl (B) changing between the first and subsequent postbacks. The ID needs to stay the same I think for the ViewState to populate back.

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

Sidebar

Related Questions

I have an UpdatePanel containing a GridView which contains a button in the HeaderTemplate
Here's my scenario: I have a page containing several links; each link is meant
I have a simple accordion type page containing a list of H3 headers and
I have an aspx page with 1 table containing 2 rows: <!DOCTYPE html PUBLIC
I have a page that is generated which inserts an HTML comment near the
I have a page upon which a user can choose up to many different
I have an ASP.NET website containing the following <asp:UpdatePanel ID=UpdatePanel1 runat=server > <ContentTemplate> <asp:Label
I have a page containing a series of tags like this <a class=IMG href=#
My iPhone app has a UIWebView that loads a page containing javascript that sets
I have a login.jsp page which contains a login form. Once logged in the

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.