dynamically loading usercontrols (vb.net)

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

Anyone have a tutorial they'd recommend. I've found a few snippets here and
there, mostly in C#.

I'm specifically looking for the 'gotchas' I should look out for.

I'm building a mini-CMS tool for a web site. The pages all load a 'content'
usercontrol, but a few 'pages' using the template, based on a query string,
I'd like to also add a second, custom control.

Is it a simple matter of 'if querystring=whatever then load control'? Or is
there more to it that I need to be aware of?

-Darrel
 
Thanks scott, I'll try that. I did notice that those articles speak
specifically of Web Controls...not specifically User Controls. Is the
concept the same?

Answered my own question via trial and error. Wow...dynamic controls are
easier than I thought. Thanks!

-Darrel
 
Back
Top