3-1 在 Students 的 Index 页面增加列标题链接 为 Index 页面增加排序的功能,我们需要修改 Student 控制器的 Index 方法,还需要为 Student 视图增加代码. 3-1-1 为 Index 方法增加排序功能 打开 Controllers\StudentController.cs,将 Index 方法替换为如下的代码. public ViewResult Index(string sortOrder){ ViewBag.NameSortParm = St
1,在整站末尾增加外联资源 找到当前主题的布局文件cms.xml,在<default></default>添加如下代码: <reference name="before_body_end"> <!-- add another block of type page/html_head to have all the great functionality to add/remove css and js stuff --> <!--