views:

10

answers:

0

i have form view i wrote this code in event sqlds_inserted

text1.text=e.Command.ExecuteScalar().ToString(); 

to have the id for the last inserted record it works but every time i add record it inserts tow records with the same data when i delete this code it works fine