Author: talsja | Posted on: 10/5/2009 4:06:44 AM | Views : 280

Hi All,
I have a question about the following senario.


- TestPage with dropdownlist to select user controls and load them into the page.
- Querystring to my TestPage to load user contro.


My TestPage has a dropdownlist on it.
This dropdownlist is dynamically filled with all user controls in my UserControls folder.
Now when i choose an item in my dropdownlist my usercontrol get's loaded into placeholder1 and the user control works perfectly.
I use loadControl for this and save controlLoaded (true/false) in viewstate so i remember the user control after postbacks.



Now it's possible that a user clicks a link button somewhere in my application, which holds a querystring to my TestPage. In the querystring i have added the name of the user control.
<a href="~/myPage.aspx?name=myUserControl">Go to user control</a>
In my page load i grab the name of the use ...

Go to the complete details ...