[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Share: Web control to dynamically load web user controls

Rocky Moore

2/22/2004 5:51:00 AM

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! ~~~~~~~~~




2 Answers

Ken Cox [MS MVP]

2/22/2004 3:13:00 PM

0

Hi Rocky,

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

http://www.asp.net/ControlGallery/SubmitControl.aspx?...

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

Ken
MVP [ASP.NET]

"Rocky Moore" <gRockyMoore@hintsandtips.com> wrote in message
news:ObmaQfQ%23DHA.3808@TK2MSFTNGP09.phx.gbl...
> 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! ~~~~~~~~~
>
>
>
>

Rocky Moore

2/22/2004 4:10:00 PM

0

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! ~~~~~~~~~

"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:#kEimZV#DHA.2316@TK2MSFTNGP11.phx.gbl...
> Hi Rocky,
>
> Thanks for the info. You might also want to submit this control to the
> Control Gallery on www.asp.net:
>
> http://www.asp.net/ControlGallery/SubmitControl.aspx?...
>
> People love *free* controls, and especially controls with source code.
>
> Ken
> MVP [ASP.NET]
>
> "Rocky Moore" <gRockyMoore@hintsandtips.com> wrote in message
> news:ObmaQfQ%23DHA.3808@TK2MSFTNGP09.phx.gbl...
> > 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! ~~~~~~~~~
> >
> >
> >
> >
>