File tree Expand file tree Collapse file tree 9 files changed +23
-23
lines changed
cu-final/Views/Instructors
cu-part6-related/Pages/Instructors
cu-part7/Pages/Instructors
cu-part8/Pages/Instructors Expand file tree Collapse file tree 9 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 2626 string selectedRow = " " ;
2727 if (item .ID == (int ?)ViewData [" InstructorID" ])
2828 {
29- selectedRow = " success" ;
29+ selectedRow = " table- success" ;
3030 }
3131 <tr class =" @selectedRow" >
3232 <td >
7979 string selectedRow = " " ;
8080 if (item .CourseID == (int ?)ViewData [" CourseID" ])
8181 {
82- selectedRow = " success" ;
82+ selectedRow = " table- success" ;
8383 }
8484 <tr class =" @selectedRow" >
8585 <td >
122122 </tr >
123123 }
124124 </table >
125- }
125+ }
Original file line number Diff line number Diff line change 2626 string selectedRow = " " ;
2727 if (item .ID == (int ?)ViewData [" InstructorID" ])
2828 {
29- selectedRow = " success" ;
29+ selectedRow = " table- success" ;
3030 }
3131 <tr class =" @selectedRow" >
3232 <td >
7979 string selectedRow = " " ;
8080 if (item .CourseID == (int ?)ViewData [" CourseID" ])
8181 {
82- selectedRow = " success" ;
82+ selectedRow = " table- success" ;
8383 }
8484 <tr class =" @selectedRow" >
8585 <td >
Original file line number Diff line number Diff line change 2626 string selectedRow = " " ;
2727 if (item .ID == (int ?)ViewData [" InstructorID" ])
2828 {
29- selectedRow = " success" ;
29+ selectedRow = " table- success" ;
3030 }
3131 <tr class =" @selectedRow" >
3232 <td >
7777 string selectedRow = " " ;
7878 if (item .CourseID == (int ?)ViewData [" CourseID" ])
7979 {
80- selectedRow = " success" ;
80+ selectedRow = " table- success" ;
8181 }
8282 <tr class =" @selectedRow" >
8383 <td >
Original file line number Diff line number Diff line change 2727 string selectedRow = " " ;
2828 if (item .ID == Model .InstructorID )
2929 {
30- selectedRow = " success" ;
30+ selectedRow = " table- success" ;
3131 }
3232 <tr class =" @selectedRow" >
3333 <td >
8080 string selectedRow = " " ;
8181 if (item .CourseID == Model .CourseID )
8282 {
83- selectedRow = " success" ;
83+ selectedRow = " table- success" ;
8484 }
8585 <tr class =" @selectedRow" >
8686 <td >
123123 </tr >
124124 }
125125 </table >
126- }
126+ }
Original file line number Diff line number Diff line change 2727 string selectedRow = " " ;
2828 if (item .ID == Model .InstructorID )
2929 {
30- selectedRow = " success" ;
30+ selectedRow = " table- success" ;
3131 }
3232 <tr class =" @selectedRow" >
3333 <td >
8080 string selectedRow = " " ;
8181 if (item .CourseID == Model .CourseID )
8282 {
83- selectedRow = " success" ;
83+ selectedRow = " table- success" ;
8484 }
8585 <tr class =" @selectedRow" >
8686 <td >
Original file line number Diff line number Diff line change 2727 string selectedRow = " " ;
2828 if (item .ID == (int ?)ViewData [" InstructorID" ])
2929 {
30- selectedRow = " success" ;
30+ selectedRow = " table- success" ;
3131 }
3232 <tr class =" @selectedRow" >
3333 <td >
8080 string selectedRow = " " ;
8181 if (item .CourseID == (int ?)ViewData [" CourseID" ])
8282 {
83- selectedRow = " success" ;
83+ selectedRow = " table- success" ;
8484 }
8585 <tr class =" @selectedRow" >
8686 <td >
123123 </tr >
124124 }
125125 </table >
126- }
126+ }
Original file line number Diff line number Diff line change 2727 string selectedRow = " " ;
2828 if (item .ID == (int ?)ViewData [" InstructorID" ])
2929 {
30- selectedRow = " success" ;
30+ selectedRow = " table- success" ;
3131 }
3232 <tr class =" @selectedRow" >
3333 <td >
8080 string selectedRow = " " ;
8181 if (item .CourseID == (int ?)ViewData [" CourseID" ])
8282 {
83- selectedRow = " success" ;
83+ selectedRow = " table- success" ;
8484 }
8585 <tr class =" @selectedRow" >
8686 <td >
123123 </tr >
124124 }
125125 </table >
126- }
126+ }
Original file line number Diff line number Diff line change 2727 string selectedRow = " " ;
2828 if (item .ID == (int ?)ViewData [" InstructorID" ])
2929 {
30- selectedRow = " success" ;
30+ selectedRow = " table- success" ;
3131 }
3232 <tr class =" @selectedRow" >
3333 <td >
8080 string selectedRow = " " ;
8181 if (item .CourseID == (int ?)ViewData [" CourseID" ])
8282 {
83- selectedRow = " success" ;
83+ selectedRow = " table- success" ;
8484 }
8585 <tr class =" @selectedRow" >
8686 <td >
123123 </tr >
124124 }
125125 </table >
126- }
126+ }
Original file line number Diff line number Diff line change @@ -803,13 +803,13 @@ The preceding markup makes the following changes:
803803
804804* Added a ** Courses** column that displays courses taught by each instructor. See [ Explicit line transition] ( xref:mvc/views/razor#explicit-line-transition ) for more about this razor syntax.
805805
806- * Added code that dynamically adds ` class="success" ` to the ` tr ` element of the selected instructor. This sets a background color for the selected row using a Bootstrap class.
806+ * Added code that dynamically adds ` class="table- success" ` to the ` tr ` element of the selected instructor. This sets a background color for the selected row using a Bootstrap class.
807807
808808 ``` html
809809 string selectedRow = "";
810810 if (item.CourseID == Model.CourseID)
811811 {
812- selectedRow = "success";
812+ selectedRow = "table- success";
813813 }
814814 <tr class =" @selectedRow" >
815815 ```
You can’t perform that action at this time.
0 commit comments