Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ASP
Posted by: Mario Lopes
Added: Sep 30, 2018 3:45 PM
Views: 15
permite colocar um botão na gridview e apagar o registo
  1.   <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="select * from disciplinas order by descricao" UpdateCommand="update disciplinas set descricao=?, p_unit=?,iva=?,valor_total=? where id=?">
  2.          <UpdateParameters>
  3.                                 <asp:Parameter Name="descricao" Type="String" />
  4.                                 <asp:Parameter Name="p_unit" Type="Double" />
  5.                                 <asp:Parameter Name="iva" Type="Int16" />
  6.                                 <asp:Parameter Name="valor_total" Type="Double" />                              
  7.                                 <asp:Parameter Name="id" Type="Int16" />
  8.                             </UpdateParameters>
  9.             </asp:SqlDataSource>