There may come a situation where we want to add a custom new safe control entry in web.config file.
Create New Empty SharePoint Project.
Add new "Empty Element" in project.
Select the newly created element and press F4 to open properties window.
Click ellipse button against the "Safe Control Entries" property as shown in below image.
The safe control entry dialog opens as shown below.
Click "Add" This will add a new safe control entry. Set properties
Name: name of safe control entry
Assembly: A strong assembly name, such as: MyFirstProject.MyFirstAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=11e9bce111e9418c.
NameSpace: The fully-qualified namespace for the class/control
Safe: True
Add as many entries as you like.
Create New Empty SharePoint Project.
Add new "Empty Element" in project.
Select the newly created element and press F4 to open properties window.
Click ellipse button against the "Safe Control Entries" property as shown in below image.
The safe control entry dialog opens as shown below.
Click "Add" This will add a new safe control entry. Set properties
Name: name of safe control entry
Assembly: A strong assembly name, such as: MyFirstProject.MyFirstAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=11e9bce111e9418c.
NameSpace: The fully-qualified namespace for the class/control
Safe: True
Add as many entries as you like.
No comments:
Post a Comment