Author: wmec | Posted on: 11/2/2009 2:49:48 AM | Views : 659

Hi,
Within a gridview, is the captioned method the one that we use for inserting a new record? Any example for doing this?
Here are my codes
    <asp:GridView ID="gv1" runat="server"
    OnRowCommand="gv_ins"
    ...
    </asp:GridView>
   
    <asp:SqlDataSource
    ID="ds_job_det" Runat="server"
    InsertCommand="insert into rec_tab(title,sup) values (@title,@sup)"
    ConnectionString="<%$ ConnectionStrings:Mssqlconn %>"
    ProviderName="System.Data.SqlClient" >
    <InsertParameters>
    <asp:SessionParameter Name="title" SessionField="sv_title" Type="String" Direction="Inpu ...

Go to the complete details ...