發表文章

目前顯示的是有「網頁應用開發工作常用的技巧」標籤的文章

ASP.NET_搭配javascript 實踐表頭靜止而資料列滾動

圖片
這次要分享的技巧是如何固定表頭只保留下方資料列(當資料量多會很多列時候) 避免讓使用者往下滾表頭不見操作起來不開心 程式碼 Head部分的Js  跟body部分的GridView 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 <head runat= "server" > <meta http-equiv= "Content-Type" content= "text/html;charset=big5" /> <title></title> <script type= "text/javascript" > function DoAutoScrollAdujst () { var gv = document.getElementById( "<%= GvLeaveRecords.ClientID%>" ) ; var gvTmp = gv.cloneNode( true ) ; for (idx = gvTmp.rows.length - 1 ; idx > 0 ; idx -- ) { gvTmp.deleteRow(idx) ; } gv.deleteRow( 0 ) ; GvHeader.appendChild(gvTmp) ; } window.onload = DoAutoScrollAdujst ...

ASP.NET_搭配jQuery UI叫出DatePicker使時間格式選擇變得嚴謹

圖片
如何透過 jQuery UI 進行萬年曆時間挑取框的顯示 至NuGet套件管理中心安裝1.12版本(不要弄最新的3.多版!! 會沒有datepicker) 自動添加進專案目錄 程式碼 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 <head runat= "server" > <meta http-equiv= "Content-Type" content= "text/html;charset=gb2312" /> <title> ASP.NET </title> <script type= "text/javascript" src= "Scripts/jquery-1.12.4.min.js" ></script> <%--< script type = "text/javascript" src = "Scripts/jquery-1.12.4.intellisense.js" ></ script >--%> <script type= "text/javascript" src= "Scripts/jquery-ui.js" ></script> <link type= "text/css" href= "Content/jquery-ui.css" rel= "Stylesheet" /> <script type= "text/javascript" src= "Scripts/json2.js" ></script> <script ...