Dynamic User Control and the View State

R

ronniek

Hi,
I'm trying to load a WebUserControl (.ascx) into a PlaceHolder but I
keep getting an exception that the Page Tree ViewState is modified.

If I load the WebUserControl by the designer (not dynamic) and it
works.

How can I load the WebUserControl dynamiclly so I can choose which one
to load?

Thanks,
Ronnie
 
S

S. Justin Gengo

Ronnie,

I have some examples of how to do this in the code library of my website:
www.aboutfortunate.com. Just click the "Code Library" link on the top right
of the page and then use the search box to search for "Dynamic User Control"
or something similar.


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top