百度空间 | 百度首页 
 
文章列表
 
您正在查看 ".net" 分类下的文章

2009-04-22 18:59
今天第一次碰到Response.Redirect报错,不是无法找到页面,而是弹出错误:

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

在网上查找问题解决方法如下:
摘自http://blog.csdn.net/skyaspnet/archive/2008/03/18/2194793.aspx

问题原因及解决办法:

原因
Response.End 方法停止页的执行,并将该执行变换到应用程序的事件管线中

类别:.net | 评论(0) | 浏览()
 
2009-04-22 15:19
开发工具:Visual Studio 2008
现象:修改后没有重新编译,直接运行程序跑起来有问题,调试就没问题,但重新编译后就不再有问题
疑问:VS在debug时不重新编译当前工程?
类别:.net | 评论(0) | 浏览()
 
2008-06-26 19:31
DotNetNuke中文官方(www.dnnchina.net)授权文章:
DotNetNuke中文官方技术支持中心(forum.pspsoft.com)

1、DNN(DotNetNuke)研究手札系列1-资源: http://www.cnblogs.com/unruledboy/archive/2004/09/01/38425.html
2、DNN(DotNetNuke)研究手札系列2-背景、现状:http://www.cnblogs.com/unruledboy/archive/2004/09/01/38607.html
3、DNN(DotNetNuke)研究手札系列3-框架(概述):http://www.cnblogs.com/unruledboy/archive/2004/09/04/39628.html
4、DNN(DotNetNuke)
类别:.net | 评论(0) | 浏览()
 
2008-04-16 15:37

很经常使用到的一个功能,但在在网上却一直没有找到相关的解决方法,今天借着项目应用到的机会写了两个将绝对路径转换为虚拟路径封装好的方法
将Web站点下的绝对路径转换为相对于指定页面的虚拟路径
/**//// <summary>
/// 将Web站点下的绝对路径转换为相对于指定页面的虚拟路径
/// </summary>
/// <param name="page">当前页面指针,一般为this</param>
/// <param name="specifiedPath">绝对路径</param>
/// <returns>虚拟路径,

类别:.net | 评论(2) | 浏览()
 
2008-04-15 20:00
string DownloadFilePath = downloadfilepath ;//下载文件在服务器中的路径 ;
        Response.Clear();
        Response.ContentType = "application/octet-stream";
        Response.AddHeader("Content-Disposition", "attachment; filename=file.txt" );
        Response.Flush();
 
类别:.net | 评论(0) | 浏览()
 
     
 
 
文章分类
 
 
 
.net(5)
 
 
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   

转载http://www.hackhome.com/InfoView/Article_180045.html
 

这是你写的???
 
     


©2009 Baidu