Please try using sqldatasource and giving parameter value with ref. control, cookies method u will able to insert records