checkout_id / product_id / product_name / quantity / unit_price / user_name 1 54 gh 3 123 oman 2 55 fgh 5 900 choudhary 3 56 try 6 809 x-men
book_id / quantity / book_name / price 53 20 asley 800 54 10 janmes 123 55 16 horror 900 56 25 divine 809 57 30 trumph 555 58 40 dekh 788
var checkoutbook = from st in obj.Checkout_tables where st.User_name== Session["user"].ToString() select st.Product_id; var bookqan = from st in obj.Book_details where checkoutbook.Contains(st.Book_Id) select st.Quantity; var bookid = from st in obj.Book_details where checkoutbook.Contains(st.Book_Id) select st.Book_Id; Int32 z = checkoutbook.Count(); for (int s = 0; s < z; s++) { Int32 st1 = (from st in obj.Book_details where st.Book_Id == checkoutbook[s] select st.Quantity).SingleOrDefault(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)