The problem encountered this time is how to check the web application with user control into moss.
When a user control application is embedded in Moss, the browser page appears.
An error occurs when processing menuframe. aspx. The Referenced File "department/depttree. ascx" is not allowed on this page ". Windows SharePoint Services troubleshooting.
It's a bit confusing. Doesn't Moss allow user control ?? Can only be encapsulated using Web parts? Encapsulation
For Web parts, the changes to my web application will be too large. Recall that a user control was modified before the custom action,
In Moss, you should be able to directly use user control! After searching in Web. config for half a day, I finally found a node.
<Safecontrol src = "~ /_ Controltemplates/* "includesubfolders =" true "Safe =" true "allowremotedesigner =" true "/>
Isn't controltemplates exactly where I modified Moss usercontrols? Seeing this node suddenly ignited hope, right, it's the node,
Copy this node, modify SRC to the directory where the user control of your web application is located, save Web. config. and browse the page again. Good! Include
The user control page can be used! Test whether parameter passing, database link, and attribute assignment are all correct. Another problem is solved.
If you encounter other problems, we will continue to discuss them!
PS: We can also reference user control without any wrapper in the moss site. Of course, it is not good to drag it at will! But it does not need to be written as a webpart. (* ^__ ^ *) Xi ......