简单介绍:出于安全考虑的设计,Fileupload控件中的值不能被程序设置。本文给出的解决方案:1. 选中立即传送到服务端作为临时文件,postback后只是确认处理。2. 让选中上传文件作为页面的最后一个步骤。之后马上提交。3. 把文件传送页面和其他选项分成不同的页面(譬如弹出一个窗口专门传文件)4.假如之前需要验证,多使用js进行客户端验证,阻止postback.其他部分大家可以自己阅读。http://www.net-aspect.com/Articles/Retaining-the-Value-of-a-File-Upload-Field-on-Postback.aspxhttp://forums.asp.net/p/1075823/1679194.aspxRetaining the Value of a File Upload Field on PostbackIntroductionThe FileUpload control displays a text box control and a browse button t阅读全文>
发表于 @ 2008年08月25日 10:13:00|评论(loading...)|收藏
Content-type: How to force a file download阅读全文>
发表于 @ 2008年07月31日 14:16:00|评论(loading...)|收藏
Recovering VMware snapshot after parent changed 阅读全文>
发表于 @ 2008年07月31日 09:39:00|评论(loading...)|收藏
getElementById DropDownList ValidatorEnable阅读全文>
发表于 @ 2008年07月27日 17:44:00|评论(loading...)|收藏
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. 阅读全文>
发表于 @ 2008年07月25日 11:18:00|评论(loading...)|收藏
<DIV id=ArticleContentTitle><A name=baidusnap1></A><B style="COLOR: black; BACKGROUND-COLOR: #a0ffff">游标</B>详解之基本<A name=baidusnap2></A><B style="COLOR: black; BACKGROUND-COLOR: #99ff99">语法</B>篇</DIV><DIV id=ArticleAuthor>作者:佚名 转自:http://www.pushad.com 点击:208 发布日期:2007-7-4 </DIV><DIV id=ArticleContent><P>要想明白什么是<B style="COLOR: black; BACKGROUND-COLOR: #阅读全文>
发表于 @ 2008年07月14日 15:17:00|评论(loading...)|收藏
c#.net实现splash screen(闪屏)的几个方法:
闪屏直接用个form就可以了,然后在主form中new出来,并且调用form.show() (千万别用showdialog)。比较麻烦的是希望在这个时候把主窗体隐藏起来。下面是解决方法。
不能用常规的this.Visible来设定。因为form的load事件后form会show出来。
以下方法1~3测试有效:
阅读全文>
发表于 @ 2008年07月03日 11:34:00|评论(loading...)|收藏