I have a DetailsView control with a template field as follows: <asp:TemplateField SortExpression="Title"> <ItemTemplate> &…