I have created a web part in which there is one taxonomy picker control to enable user to select department.
I want to store the selected term to the list column which is of type Managed Metadata
.
The declarative part is:
<tr>
<td>
<asp:Label ID="lblProjectOwnerDepartment" runat="server" Text="Owner Department"></asp:Label>
</td>
<td>
<Taxonomy:TaxonomyWebTaggingControl OnLoad="taxProjectOwnerDepartment_Load" ID="taxProjectOwnerDepartment" runat="server" Visible="true" IsDisplayPickerButton="true" IsMulti="false"
AllowFillIn="false" IsAddTerms="false" IsIncludePathData="false"></Taxonomy:TaxonomyWebTaggingControl>
</td>
<td>
<asp:CustomValidator ID="cvProjectOwnerDepartment" runat="server" OnServerValidate="cvProjectOwnerDepartment_ServerValidate" />
</td>
</tr>
How do I get the terms? I searched over internet but only found the articles to get terms from sharepoint.
Please help.