niketakapoor 0 Newbie Poster

hello everyone help me in this code
database table membership_details
membership_id,membership_desc,fine_per day,membership_fees

return table
book return id identity,book_issue_id int,book_late_fine

issue table
issue_id identity,book_tag_id


da.InsertCommand = new SqlCommand("Insert` into book_return_details Values(@issue_id,@book_returned_on,@late_fine)", cs);
            //da.InsertCommand.Parameters.Add("@book_issue_id", SqlDbType.Int).Value = ?????????????


what code i will insert in ???? so that issue id get saved in database...
the issue_id can be get from tag_id i think....bt how to write code to get it!!!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.