English 中文(简体)
展示伙伴关系的友好信息。 NET Ajax误差
原标题:Show friendly message on ASP.NET Ajax error

你们都知道知道:

“alt

我确实有一个记录系统,正确的错误非常明确,但我想向用户提供更好的信息。

我一直在尝试几种方式,但我使用Telerik部件和精干 j,我最后使用这两个设施。 NET Ajax 方法和j Query,因此我使用

function pageLoad() {

    try {
        var manager = Sys.WebForms.PageRequestManager.getInstance();
        manager.add_endRequest(endRequest);
        manager.add_beginRequest(OnBeginRequest);
        manager
    }
    catch (err) {
        alert(err);
    }
}

以及

$(document).ready(function() { ... }

that alert(err) is never fired even upon OnClick events

避免这一信息错误并提供更清洁的方法是什么?

<>strong>all this comes in <asp:UpdatePanel> as I use that when I don t knowledge better (3年前!) and I really do ne obuse to mes up and Building all resratch :

非常感谢任何帮助。


volpav之后更新更多错误窗口 解决办法

“alt

“alt

问题回答

你发现的错误并非你能够轻易在客户方面处理。 A. 更正 管理人员无法对答复进行分类,你没有把答复放在能够处理最终请求和确定“errorHandled()”的地步。

它告诉你,有人把对你的更新小组的答复 man为.。 很久以前,我曾就这一共同原因写过:

错误信息表明,另一个共同原因是,HttpModules 注入标记。 例如,GoDaddy使用(或用于)一种在免费托管账户上注入新娘,从而打破了更新小组。

如果你在火药或菲德勒等物品中检查这种反应,就应当明显看出外国内容。 我难以猜测,如果不知道你的申请,那么它究竟是什么。

Scott解释说,在博客员额中,不要劫持这一员额。

我使用他的手法,同时使用“Qu”和“ No”和“通知”的金字。

Scott s post:

j Query Noty Plugin:

var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_endRequest(function(sender, args) {
    var error = args.get_error();
    if(error != null && error.httpStatusCode != null) {
        // handle error
        args.set_errorHandled(true);
    
    }    
});




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签