首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

dbforum147/ 


共2个网摘 [ 1 ]   |  访问dbforum147的个人空间

Vista Ulta. Excel 2002 Comments out of alinement - Windows Vista

dbforum147收录,使用标签:If, I, go, to, the, top, of, the, file, and, put, in, another, line, of, date, it, will,时间:2008-6-30 23:27:53 | 相关网摘我也收藏

Vista Ulta. Excel 2002 Comments out of alinement
I have a couple of thousand rows with a hundred comments which I'm showing.
If I go to the top of the file and put in another line of date it will
through every comment I have out of whack. What can I do about this? Can I
fix this without a micro because I don't know crap about micro's.


"Thread was being aborted" exception on redirect - VERY weird!! - Web Programming

dbforum147收录,使用标签:anything, added, below, this, line, is, nothing, to, do, with, me,时间:2008-6-30 22:43:42 | 相关网摘我也收藏

Hello,

I have a page that is supposed to do some checking, and if OK, set a
session variable before redirecting to another page. The following code
is a simplified version, I have hard-coded the basket ID and removed a
load of extra checking...

public partial class GoToCheckout : Page {
public void Page_Load(Object o, EventArgs e) {
try {
Session["basketid"] = "178";
//x.Text = "redirecting to PreCheckout.aspx";
Response.Redirect("PreCheckout.aspx");
} catch (Exception ex) {
Response.Redirect("/?msg=" + ex.Message);
//x.Text = "exception - " + ex.Message;
}
}
}

When this page is called, it throws a "Thread was being aborted"
exception when it hits the line...

Response.Redirect("PreCheckout.aspx");

The catch block picks it up and redirects to the home page, putting the
exception message in the querystring. I did this because if I comment
out the redirect in the catch and instead use the (commented out) x.Text
bit (x is a literal, put on the otherwise empty .aspx file for
debugging), then the redirect works fine!!

If I comment out the redirect in the try block and uncomment the x.Text
line there, then the page displays the message "redirecting to
PreCheckout.aspx" exactly as expected.

So, it seems there's some weird problem with the redirect, but I can't
work it out. Nor can I work out why changing the behaviour of the code
in the catch block changes whether the exception is raised or not.

This code has been working fine for a few months now. I have recently
been changing pages to use master pages and themes, which is when I
noticed the problem. However, if I now change this page back to not use
a master or theme, the problem is still there. I am totally baffled, and
would appreciate any help you can offer. TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
-



共2个网摘 [ 1 ] 

dbforum147/相关标签



网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
Copyright © 2000-2008, CSDN.NET, All Rights Reserved