Help On Inserting Multiple records using loop

Posted by Vijayar under C# on 12/19/2011 | Points: 10 | Views : 998 | Status : [Member] | Replies : 1
Hi
the table structures are parent
parent-id,residence number,mobile number,class id
message
message-id,class id,Phone number,message
Now
i want to select more than one class from check box list i.e. first ,second............tenth .
Now i want to save class id,phone number and message in message table for the classes selected for "n" number of records in the selected classes
i.e. if there are 10 students in first class and 10 records in second class .20 records should be inserted in the message table.how to loop for records.Explain me with an attachment.Its very urgent.How to use 2 loops
i.e.
in fetching multiple ids and separting them and inserting records for each id

vijaya


Responses

Posted by: Naraayanan on: 2/2/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Vijaya,
could you please send your Program screen chat and then i will give an idea.


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response