Embed your ASP. NET application into SharePoint (continued)

Source: Internet
Author: User

 

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 ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.