CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

Use an usercontrol in another application

I'm wild about usercontrols, aka ascx'es. Very very usefull. But they do have one drawback : you cannot use a usercontrol in another application. Asp.net will tell you (at runtime) “this cannot be allowed”. Because it contains markup ? Pitty.

Peter



Comments

Brian Beatty said:

I was on a project that used user controls across web applications. It took a little work, with Virtual Directories and fun with ~\ and references the other projects.
# June 2, 2004 6:36 PM

Peter van Ooijen said:

Several of my web-apps merged into one big system. What I wanted to do is have a common page header, with the version # and some basic links. After parsing it into a custom control it would become complicated to update it. And i can't make life to hard on the sa.
What I do now is just generate the html myself in the render of my base form. Works, but is not very visual.
# June 3, 2004 2:08 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!

This Blog

Syndication

News