2012年1月3日 星期二

固定ListView頂端列

1.移除 aspx 一列
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

2.用 div 包住 listview
<div style="overflow: auto; height:400px">

3.LayoutTemplate 第一個 tr 設定 style
<tr style="position:relative;top: expression(offsetParent.scrollTop); " >

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...