Sha Web control to dynamically load web user controls

Sha Web control to dynamically load web user controls

Post by Rocky Moor » Mon, 23 Feb 2004 14:50:44


Quite some time ago, I needed build a simple web site that used a template
and the content would be in web user controls. Being new to web controls, I
thought it was just a simple matter but find myself digging all over the
net. Never found and answer, so I plowed through and built a very simple
control that worked for what I needed.

The control is not perfect as I have not yet managed to get the "style"
setting of the control to be brought out on the generated <div> tag that I
use to wrap the user control. But it functions for what I need to do. I
have used this control and several web sites and it is the primary structure
to www.GotTheAnswerToSpam.com for example. The links on the navigation bar
simple ad a parameter to the URL and the control picks that up and
automatically displays the matching user control. Simple but really handy.
I just drop it on a form, set three properties and it automatically handles
the rest.

Anyway, I was asked email if I knew of a way since they saw one of my
earlier posts where I was begging for information. The is the second time
someone has taken the time to email me about it, so I figure it might be
handy for others.

I have posted it to my web site: www.RJSoft.com/Products/RJContentPanel/

It is free for anyone to use. If you anyone happens to make improvements I
would love to receive them also, but not required.

Enjoy!

--
Rocky Moore
www.RJSoft.com
www.HintsAndTips.com - Share your tips with the world!
~~~~~~~~~ Developer Tips Welcome! ~~~~~~~~~
 
 
 

Sha Web control to dynamically load web user controls

Post by Ken Cox [M » Tue, 24 Feb 2004 00:13:19

Hi Rocky,

Thanks for the info. You might also want to submit this control to the
Control Gallery on www.asp.net:

http://www.yqcomputer.com/

People love *free* controls, and especially controls with source code.

Ken
MVP [ASP.NET]

 
 
 

Sha Web control to dynamically load web user controls

Post by Rocky Moor » Tue, 24 Feb 2004 01:10:24

Thanks, its like Duh... Do not know why but I did not even think about
that. Will got it posted shortly!

--
Rocky Moore
www.RJSoft.com
www.HintsAndTips.com - Share your tips with the world!
~~~~~~~~~ Developer Tips Welcome! ~~~~~~~~~





template
controls,
simple
I
I
time
improvements