遇到文件的上传时,可能会有大部分的开发者喜欢使用服务器控件,虽然很方便,但是却不能很好的控制,不具灵活性。现给出例子,使用html标签语言灵活的控制文件的上传。1、html部分上传文件2、JS部分3、uoload.aspx.cs代码部分protected void Page_Load(object ...
                            
                            
                                分类:
Web程序   时间:
2014-08-13 00:38:54   
                                阅读次数:
199
                             
                    
                        
                            
                            
                                using System;using System.Threading;using System.Threading.Tasks;namespace Microsoft.AspNet.Identity{ internal static class AsyncHelper { private stat...
                            
                            
                                分类:
Web程序   时间:
2014-08-12 18:08:14   
                                阅读次数:
278
                             
                    
                        
                            
                            
                                protected void Page_Load(object sender, EventArgs e){ StringBuilder MyStringBuilder = new StringBuilder();WebRequest request = WebRequest.Create("ht.....
                            
                            
                                分类:
其他好文   时间:
2014-08-12 18:06:54   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                使用VisualStudio2008编译链接程序的时候,遇到链接错误,错误信息如下:fatalerrorLNK1000:InternalerrorduringIncrBuildImage一般有如下3中解决方案:第一:该问题仅仅在第一次编译的时候出现,重新编译就可以运行了;第二:去微软官方下载KB948127补丁程序(见附件,但大多..
                            
                            
                                分类:
其他好文   时间:
2014-08-12 17:39:25   
                                阅读次数:
226
                             
                    
                        
                            
                            
                                前几天安装了一个bugfree,但是测试人员在用的时候发现保存bug的时候直接报500了,然后我看了下apache的错误日志,内容是:[TueAug1214:42:342014][error][client192.168.30.67]PHPFatalerror:Calltoundefinedfunctionmb_detect_encoding()in/var/www/html/bugfree/protected/ex..
                            
                            
                                分类:
其他好文   时间:
2014-08-12 17:34:45   
                                阅读次数:
273
                             
                    
                        
                            
                            
                                首先,把snoopy类放到protected\extensions\snoopy\文件夹下。
其次,在yii配置文件main.php里配置import扩展进来。'import'=>array(
        'application.extensions.*',
    ),
然后在一个controller类文件的开始,加入以下行:require_once('snoopy/Snoopy....
                            
                            
                                分类:
其他好文   时间:
2014-08-12 17:23:44   
                                阅读次数:
203
                             
                    
                        
                            
                            
                                CSharp陷阱1环境:sharpdevelop 3 .net 2.0正确的 internal static readonly string[] string_2 = new string[] { "A", "B"}; internal static readonly ArrayList array...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 16:59:44   
                                阅读次数:
150
                             
                    
                        
                            
                            
                                Content pagePreInitevent.Master page controlsInitevent.Content controlsInitevent.Master pageInitevent.protected void Page_Init(object sender, EventArg...
                            
                            
                                分类:
Web程序   时间:
2014-08-12 13:18:24   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                protected void Button1_Click(object sender, EventArgs e) { Button btn = sender as Button; Response.Write(btn.CommandArgument.ToString());//前台传按钮参数过来 ....
                            
                            
                                分类:
其他好文   时间:
2014-08-12 13:18:14   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                前台代码: 后台绑定省份protected void Page_Load(object sender, EventArgs e){ BindDDL(); ddlProvince.Attributes.Add("onchange", "getCitys(this)");}p...
                            
                            
                                分类:
Web程序   时间:
2014-08-12 10:18:03   
                                阅读次数:
264