我有 2 张桌子,比如....
在这里,管理员根据课程和学期将科目分配给院系......
1] 分配_主题
Faculty_Id varchar(20)
Course_Id varchar(20)
Semester varchar(20)
Subject_Id varchar(20)
Subject_Name varchar(50)
Time varchar(50)
INSERT INTO Assign_Subjects Values("F1","BCA",2,"DS","Data Structure","10-11")
INSERT INTO Assign_Subjects Values("F1","BCA",2,"C","C Programming","11-12")
INSERT INTO Assign_Subjects Values("F1","BCA",1,"QB","Q Basic","1-2")
INSERT INTO Assign_Subjects Values("F2","BCA",3,"SS","System Structure","10-11")
INSERT INTO Assign_Subjects Values("F2","BCA",3,"AC","Accountancy","11-12")
在这里,教师为学生插入标记
2]考试结果
Result_Id int(Auto no and PK)
Enroll_Number varchar(50) Checked
Student_Name varchar(100) Checked
Course_Id varchar(50) Checked
Semester varchar(50) Checked
Subject_Id varchar(50) Checked
Subject_Name varchar(50) Checked
MarksObtained numeric(18, 0) Checked
Exam_Type varchar(50) Checked
现在我的问题是如何在单击单按钮时将所有分配的科目标记插入到Exam_Result中
我给出了大致的想法我想要的是....
在FillResult.aspx中,我希望所有主题名称带有由管理员和按钮(onClick 事件)分配的文本框(或任何其他可能的方式,如 gridview/dalalist 等)来填充标记......
注意:主题显示为根据分配而不是固定数量的主题,它可能是 3 或 5 或更多
所以,我怎么可能这样做......??
通过gridview,编辑模板或存储过程????
欢迎所有的回答......