Logo 
Search:

Sharepoint FAQ

Submit Interview FAQ
Home » Interview FAQ » SharepointRSS Feeds

What are safe controls, and what type of information, is placed in that element in a Sharepoint

  Shared By: Tarang Nayak    Date: Mar 12    Category: Sharepoint    Views: 1011

Answer:

What are safe controls, and what type of information, is placed in that element in a Sharepoint web.config file?


When you deploy a WebPart to Sharepoint, you must first make it as a safe control to use within Sharepoint in the web.config file. Entries made in the safe controls element of Sharepoint are encountered by the SharepointHandler object and will be loaded in the Sharepoint environment properly, those not will not be loaded and will throw an error.
In the generic safe control entry (this is general, there could be more), there is generally the Assembly name, the namespace, the public key token numeric, the typename, and the safe declaration (whether it is safe or not). There are other optional elements.

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: