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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:59:13+00:00 2026-06-15T14:59:13+00:00

Lets explain the problem with a simple case: Lets CC be a composite control.

  • 0

Lets explain the problem with a simple case:

Lets CC be a composite control.

CC has a variable called filter (string) stored in viewState.

CC has 2 static child controls:

  • searchBox: Textbox
  • searchButton: Button

The user type a search term and click on the searchButton.

the following steps happens:

  • PageLoad

  • CreateChildControls:

    • Create static child controls
    • Request database using filter
    • Create table with results and insert on each row an editButton (Button) and binding handler to the editButtons click event.
    • Insert table in childControls hierarchy.
  • Click event is fired

searchButton_click handler does the following:

  • update the filter
  • Recreate child controls this is where I am stucked

I need to recreate the child control hierarchy but also to maintain the child controls viewstate ! Otherwise, my editButtons’s Click events will not be fired at all.

Is there a way to achieve this ?
I keep searching but I cannot find any solution. I will be glad to get some help from you guys.

Hope you anderstand my problem, ask questions/code illustration if needed.

Best regards

Quick

  • 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-15T14:59:14+00:00Added an answer on June 15, 2026 at 2:59 pm

    Ok, i have found a solution:

    The trick was to give an ID to each editButton (string.format(“editButton_{0}”, i).

    If you have better solution, please let me know.

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

Sidebar

Related Questions

I'll better explain the problem with an example: Lets suppose I'm creating a library
My problem is fairly simple to explain yet a little tricky to implement. Logically
I have a problem which is hard to explain so lets get started: Context:
I have a problem with populateRelation , lets explain, that we have some Article,
let me explain my current situation i have a SharePoint site lets say it
This is a bit hard to explain but I'll give it a go. Lets
Sorry for the unhelpful title, but hopefully I can explain this well enough. Lets
lets say i created a virtualenv called venv (virtualenv venv) From reading tutorials, i
Its probarbly a simple 3-tier problem. I just want to make sure we use
I'll try to explain my problem. I use the JSF 1.2 implementation of IBM

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.