PIXNET Logo登入

工作需要筆記

跳到主文

歡迎光臨amychang2014在痞客邦的小天地

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 17 週四 201518:31
  • TEST

此篇文章受密碼保護,請輸入密碼後閱讀。
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(5)

  • 個人分類:
▲top
  • 6月 01 週三 201612:12
  • 上傳前預覽

<html>
<head>
<style type="text/css">.thumb-image{float:left;width:100px;position:relative;padding:5px;}</style>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<div id="wrapper" style="margin-top: 20px;"><input id="fileUpload" multiple="multiple" type="file"/> 
<div id="image-holder"></div>
</div>
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(62)

  • 個人分類:jQuery
▲top
  • 5月 12 週四 201611:46
  • SQL 排序置換

If 'Peter' and 'Steve' are unique in your table, this will do:
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(10)

  • 個人分類:SQL
▲top
  • 5月 06 週五 201612:05
  • 臨時網址

http://ipq.co/
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(26)

  • 個人分類:其它
▲top
  • 5月 06 週五 201611:54
  • C# 載入資料夾內所有圖片

            string bookNo = "01";
            bookNo = Request.Params["no"] == null ? "01" : Request.Params["no"];
            DirectoryInfo dir = new DirectoryInfo(Server.MapPath("~/_img/bookImg/" + bookNo));
            if(!dir.Exists){
                dir = new DirectoryInfo(Server.MapPath("~/_img/bookImg/01"));
                bookNo = "01";
            }
            FileInfo[] files = dir.GetFiles();
            StringBuilder sb = new StringBuilder();
            foreach (FileInfo file in files)
            {
                sb.Append("<img src='' data-original='_img/bookImg/" + bookNo + "/" + file.Name + "' style='width:100%;'  />");
            }
            bookImg.InnerHtml = sb.ToString();
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(576)

  • 個人分類:ASP.NET C#
▲top
  • 5月 06 週五 201611:54
  • 判別行動裝置

var uA = navigator.userAgent;
        if (uA.match(/iPod/) || uA.match(/iPad/) || uA.match(/iPhone/) || uA.match(/Android/) || uA.match(/Windows Phone/)) {
            location.href = "xxx.aspx?no=" + no;
        } else {            
            $(".pobBox").load("xxx.aspx?no=" + no);
            $(".popDiv").show(); $(".popDivBg").show();            
        }
 
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(10)

  • 個人分類:jQuery
▲top
  • 5月 06 週五 201611:47
  • 使用a 呼叫js 埋ga

<a class="viewBtn" href="javascript:showView('01')" onclick="ga('send', 'event', 'xxx', 'xxx', '1')"></a>
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(19)

  • 個人分類:JavaScript
▲top
  • 5月 06 週五 201611:45
  • C# 直接下載檔案

protected void LinkButton5_Click(object sender, EventArgs e)
    {
        string filename = "xxx.pdf";
        //從Server端取得檔案 
        Stream FileStream;
        FileStream = File.OpenRead(Server.MapPath("~/xxx/xxx.pdf"));
        downloadBook(filename, FileStream);
    }
    protected void downloadBook(string filename, Stream FileStream)
    {
        Byte[] Buf = new byte[FileStream.Length];
        FileStream.Read(Buf, 0, int.Parse(FileStream.Length.ToString()));
        FileStream.Close();
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(8,597)

  • 個人分類:ASP.NET C#
▲top
  • 4月 13 週三 201617:25
  • 圖片按鈕 input file

way3
<div class="col-3 frmCaption">Attachments:</div>
<div class="col-9">
    <label class="customUpload btnUpload btnM"> <span>Upload files</span>
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(41)

  • 個人分類:CSS
▲top
  • 3月 30 週三 201610:41
  • [轉貼]上傳檔案前,JavaScript檢查檔案格式、大小

https://dotblogs.com.tw/topcat/archive/2009/02/20/7250.aspx
範例程式如下:
(繼續閱讀...)
文章標籤

amychang2014 發表在 痞客邦 留言(0) 人氣(1,618)

  • 個人分類:jQuery
▲top
12...39»

個人資訊

amychang2014
暱稱:
amychang2014
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (1,234)c#移除HTML Tag
  • (223)發票歸戶
  • (103)C# 時間比較
  • (26)jQuery取url變數
  • (20)javascript youtube 驗證
  • (14)社會創新
  • (14)使用 ajax 注意事項
  • (9)C# Convert、Parse、TryParse、(int) 區別使用
  • (6)jQuery select ASP.NET Control
  • (2)INSERT、UPDATE FROM SELECT

文章分類

  • RWD (0)
  • JSON (1)
  • 物件導向 (1)
  • ASP.NET MVC (1)
  • JSON (1)
  • Google API (2)
  • IIS (3)
  • SQL (15)
  • CSR企業社會責任 (3)
  • PhoneGap (19)
  • Mobile (2)
  • Design (3)
  • CSS (38)
  • 其它 (18)
  • New Project (1)
  • jQuery (71)
  • MSSQL (12)
  • ASP.NET C# (136)
  • Facebook (5)
  • JavaScript (48)
  • 未分類文章 (1)

最新文章

  • 上傳前預覽
  • SQL 排序置換
  • 臨時網址
  • C# 載入資料夾內所有圖片
  • 判別行動裝置
  • 使用a 呼叫js 埋ga
  • C# 直接下載檔案
  • 圖片按鈕 input file
  • [轉貼]上傳檔案前,JavaScript檢查檔案格式、大小
  • css goTop

文章精選

文章搜尋

參觀人氣

  • 本日人氣:
  • 累積人氣: