title: use data-target and data-toggle on asp:buttonfield
body: <p>i am creating a web app in which i want to open a modal on button click, the button is inside grid</p>
  
  <pre><code>&lt;asp:ButtonField Text="Expense" data-toggle="modal" data-target="#myModal"  CommandName="Select"  /&gt;   
  </code></pre>
  
  <p>this is my button in which i want to open the bootstrap modal but when i debug my program i am getting the following error</p>
  
  <blockquote>
    <blockquote>
      <p>Parser Error</p>
    </blockquote>
    
    <p>Description: An error occurred during the parsing of a resource
    required to service this request. Please review the following specific
    parse error details and modify your source file appropriately. </p>
    
    <p>Parser Error Message: Type 'System.Web.UI.WebControls.ButtonField'
    does not have a public property named 'data-toggle'.</p>
  </blockquote>
  
  <pre><code>    Line 259:                 SortExpression="status" /&gt;
  Line 260:             &lt;asp:BoundField DataField="clash" HeaderText="clash" SortExpression="clash" Visible="false" /&gt;
  Line 261:             &lt;asp:ButtonField Text="Expense" data-toggle="modal" data-target="#myModal"  CommandName="Select"  /&gt;   
  Line 262:             &lt;asp:ButtonField Text="Expense Details"   CommandName="Details"   /&gt;  
  Line 263:         &lt;/Columns&gt;
  </code></pre>
  
  <p>any help?</p>