[ASP.NET] 파일 클릭 시(다운로드) 브라우저에서 바로 열리지 않고 다른이름으로 저장
[ 하이퍼 링크 사용 ]
http://stackoverflow.com/questions/4253299/how-to-open-the-save-as-dialog-on-click-of-the-image
[ Html 헤더(meta태그)에 다운로드 정의하는 방법 ]
[ 자바스크립트 사용 ]
http://dl.dropboxusercontent.com/u/35146/ieSaveAs.html
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="javascript" charset="utf-8">
var win;
function check() {
if (win.document.readyState=='complete'){
win.document.execCommand("SaveAs");
win.close();
} else {
window.setTimeout('check();',1000);
}
}
function saveImage() {
win = window.open('keyboard.jpg','win');
window.setTimeout('check();',1000);
}
</script>
</head>
<body>
<input type="button" value="Save Image" onClick="saveImage()" />
</body>