Insert ,Update &Delete RRS feed

  • Question

  • User478149098 posted

    hi All,

              can anyone tell me the insrt , update & delete program in c# with Sql conn. n instant show in grid view

       <div style="border:2px solid blue">
            <asp:Label ID="Label1" runat="server" Text="Empid" Width="100px"></asp:Label>&nbsp&nbsp;
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
            <asp:Label ID="Label2" runat="server" Text="Name" Width="100px"></asp:Label>&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
            <asp:Label ID="Label3" runat="server" Text="Address" Width="100px"></asp:Label>&nbsp;
            &nbsp; &nbsp;
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /><br /><br />
            <asp:Button ID="Button1" runat="server" Text="Insert" />
            <asp:Button ID="Button2" runat="server" Text="Update" />
            <asp:Button ID="Button3" runat="server" Text="Delete" />
            <asp:GridView ID="GridView1" runat="server">
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:CommandField ShowSelectButton="True" />

    for this  code


    Monday, March 10, 2014 7:44 AM