当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·寻找解决方案    »显示摘要«
    摘要: 1、当进行大量数据库操作时,系统反应时间很长,有时不知道是不是死机了,能不能做一个进度条来提示,如何做? 2、有没有既可以输入也可以选择的dropdownlist控件,或者怎样做一个? ......
    摘要: 请问:在jscript中有什么方法是与c#中的“system.web.httputility.urlencode(string)”相当的? 谢谢! ......


点网页中的文件下载,直接在浏览器中打开了,我想点击下载后弹出对话框,然后保存.

点网页中的文件下载,直接在浏览器中打开了,我想点击下载后弹出对话框,然后保存!谢谢

NO.1   作者: guoyan19811021

Dim   name   As   String   =   "中文名称"  
                          Response.ContentType   =   "application/ms-word"  
                          Response.Charset   =   "UTF-8"  
                          Response.AddHeader("content-disposition",   "attachment;   filename=   "   &   HttpUtility.UrlEncode(name)   &   ".doc")  
   
                          Dim   sourceFile   As   IO.FileStream   =   New   IO.FileStream("F:\downloadexample.doc",   IO.FileMode.Open)  
                          Dim   FileSize   As   Long  
                          FileSize   =   sourceFile.Length  
                          Dim   getContent()   As   Byte   =   New   Byte(FileSize)   {}  
   
                          sourceFile.Read(getContent,   0,   sourceFile.Length)  
                          Response.BinaryWrite(getContent)  
                          sourceFile.Close()

NO.2   作者: siugwan

CS   的应该怎样写?

NO.3   作者: aoyo

Response.AddHeader("content-disposition",   "attachment;   filename=   "   &   HttpUtility.UrlEncode(name)   &   ".doc")  
  关键是attachment


    摘要: 我用setwindowlong(edit1.handle, gwl_style, getwindowlong(edit1.handle,gwl_style) or es_number); 这个函数限制edit 只能输入数字,但现在发现,效果是达到了,但是无法输入小数点了。就是我想输入0.003,确只能写成0003,小数点无法输入,怎么办啊?? 急!! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE