Click here to Skip to main content
16,017,238 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In gridview as follows

For each dropdownlist 1 to 10.four items to be there Poor,Fair,Good,Excellent.
1 means Poor,2 means Fair,3 means Good,4 means Excellent.

Faculty gridview as follows

FacultyName Question1 Question2 Question3 Question4
Ram Dropdownlist1 Dropdownlist2 Dropdownlist3 Dropdownlist4
Sam Dropdownlist5 Dropdownlist6 Dropdownlist7 Dropdownlist8

Instructor gridview as follows

InstructorName Question1 Question2 Question3 Question4
Ram Dropdownlist1 Dropdownlist2 Dropdownlist3 Dropdownlist4
Sam Dropdownlist5 Dropdownlist6 Dropdownlist7 Dropdownlist8

Faculty Table strcutre as follows

id Autoincrement
FacName varchar(50)
Question1 int
Question2 int
Question3 int
Question4 int

Instructor Table structure as follows
id Autoincrement
InsName varchar(50)
Question1 int
Question2 int
Question3 int
Question4 int


I have one submit as follows.

In that submit button i want to save above two gridview records into Faculty and instructor table using union all.

we can use union all when inserting the mutiple gridview values.

why we use union all meanse when inserting the multiple gridview values in database. every time it disturbs the database for that we can union all to insert the records.

for that how can i do in asp.net using c#.

please help me for that how can i do in asp.net using C#.
Posted
Comments
Fadi Halboni 9-Jun-14 2:40am    
Dear,
i think you can't use union for insert data in table, and union all almost use for separate one row to multiple row in select query.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900