在页面回发ASP.NET期间删除了CSS一段时间

时间:2014-11-18 07:49:07

标签: c# html css asp.net

我在我的应用程序中遇到了一个非常奇怪的问题,在某些地方发生了回发事件,并且一秒或两秒的css页面重新加载将被删除,而html结构加载只会突然css适用。

这是随机问题,当css没有出现时不是很长但是它是可见的并且影响UI和客户体验。请看下面1-2秒会发生什么(没有CSS的页面) -

enter image description here

我正在使用ASP.NET Web表单 - 4.5,MSSQL Server作为数据库,js和VS 2012中提供的默认Ajax控件。

任何人都可以分享如何摆脱这个问题或任何修复。

我正在准备过去5年的申请,但这是我第一次遇到这样的问题,请帮忙,我们将非常感谢。

1 个答案:

答案 0 :(得分:-1)

转换你的

Failed to provision file into host web. Error: Unexpected response data from server.

// utility method for uploading files to host web..
uploadFileToHostWebViaCSOM = function (serverRelativeUrl, filename, contents) {
    var createInfo = new SP.FileCreationInformation();
    createInfo.set_content(new SP.Base64EncodedByteArray());
    for (var i = 0; i < contents.length; i++) {

        createInfo.get_content().append(contents.charCodeAt(i));
    }
    createInfo.set_overwrite(true);
    createInfo.set_url(filename);
    var files = hostWebContext.get_web().getFolderByServerRelativeUrl(serverRelativeUrl).get_files();
    hostWebContext.load(files);
    files.add(createInfo);

    hostWebContext.executeQueryAsync(onProvisionFileSuccess, onProvisionFileFail);
}

你有解决方案