update table with gridview RRS feed

  • Question

  • User-909867351 posted

    I have one gridview and one edit buttom. How can I create the update control to my sqldatasource. How cab I access the textbox for the upadte command?

    like this select, I need one update that access the textbox inside gridvie

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:explicame %>" ProviderName="<%$ ConnectionStrings:explicame.ProviderName %>" SelectCommand="select * from disciplinas where tipo=?">

    Wednesday, September 5, 2018 9:57 AM


  • User-909867351 posted

    found it

    UpdateCommand="update disciplinas set p_unit=? where id=?">
                    <asp:Parameter Name="p_unit" Type="Double" />
                    <asp:Parameter Name="id" Type="Int16" />

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 5, 2018 10:11 AM