Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Dynamic Loading Web user controls on click events not firing

Posted on 2010-09-21
7
Medium Priority
?
661 Views
Last Modified: 2012-06-27
Im loading the web user controls programmatically when the gridview row click event fires and  the data with parameters came from default.aspx to be load for the web user controls is ok but the problem is the buttons of the web user controls are not firing the click events. How can i set all the controls event to be recognize on the default page when i click the buttons on my web controls?

Note:
I have Nested UpdatePanel on each Tab Panel.
0
Comment
Question by:d3nn1s
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 14

Expert Comment

by:existenz2
ID: 33723574
You need to reload those usercontrols on the OnInit event. Then the events will fire properly
0
 

Author Comment

by:d3nn1s
ID: 33723584
How?
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Author Comment

by:d3nn1s
ID: 33723736
i read all the links before and it does not work on this case.

First approach i did is put the webuser controls hardcoded on the parent page .aspx and the button click events on the webuser controls works fine but my problem to that is when the paramater id coming from the parent page was unable to pass via session or viewstate so i cannot bind the text data on the web user control because before i even put the parameter value the webuser control already finsihed loading having the null value.

By doing the dynamic loading of webuser controls programmatically works only if i only want to show the data but the buttons inside it is non responsive and also i have to reload the webuser controls everytime i fired an event.

One of the samples i read is it call the event from the web user control and displays it on parent page. What i had i mind is that i want the parent page to be the search tool and container of all my web user controls that can work as a unit because each web controls caters the data.

If you know how to set the priority of the passing of parameter through session before the web user control Page load fires.
0
 

Accepted Solution

by:
d3nn1s earned 0 total points
ID: 33725673
i solved the problem by putting an ID on dynamic loading of controls.
0
 
LVL 14

Expert Comment

by:existenz2
ID: 33734703
Author did not solve the problem himself. The answer was in the provided links.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question