首页 \ 问答 \ 在Chrome中未定义Sys.WebForms(Sys.WebForms is undefined in Chrome)

在Chrome中未定义Sys.WebForms(Sys.WebForms is undefined in Chrome)

我在我的Web应用程序中进行了一些部分更新,但是我收到“在Chrome(最新版本)中未定义Sys.WebForms ”的错误。 我在网上搜索了很多,但无法得到任何有效的帮助。

请帮帮我。 因为我是ASP.NetAJAX新手。

这段代码如下:

var prm = Sys.WebForms.PageRequestManager.getInstance();

I am doing some partial updates in my Web-Application, but I get the error that "Sys.WebForms is undefined in Chrome (latest version)". I have searched a lot on net but couldn't get any valid help.

Please help me out. As I am new at ASP.Net and AJAX.

The piece of code is as follow:

var prm = Sys.WebForms.PageRequestManager.getInstance();

原文:https://stackoverflow.com/questions/37559774
更新时间:2023-07-29 10:07

最满意答案

好吧,我终于解决了这个问题:我从来没有想过在以太网电缆本身和以太网MAC地址头之间有一层。

当然,我不使用以太网电缆,但我正在使用一个数据包嗅探器,它在每个数据包之后打印一个换行符。

处理完每个数据包后,一个简单的incomingdata.split("\n").slice(1).join("\n")足以解决所有情况下的错误!


Alright, I finally resolved this issue: it never occurred to me that there was a layer in between the Ethernet cable itself and the Ethernet MAC-address header.

I'm not working with Ethernet cables, of course, but I am working with a packet sniffer that printed a newline after every packet.

A simple incomingdata.split("\n").slice(1).join("\n") after processing each packet was sufficient to resolve the bug in all cases!

相关问答

更多
  • arp问题!![2023-02-23]

    你到ARP官方网站去下个,安装上就可以了
  • Microsoft已在2014年6月更新中修复了上述问题。 问题记录为KB2964369:基于Windows Embedded Compact 7的设备在重新启动后不发送Gratuitous ARP。 The above issue has been fixed by Microsoft in the June 2014 update. The issue was recorded as KB2964369: Windows Embedded Compact 7-based device does not ...
  • 用这个: QString number = QString("%1").arg(yourNumber, 5, 10, QChar('0')); 这里的5对应于printf("%05d") 。 10是基数,你可以把十六进制打印16。 Use this: QString number = QString("%1").arg(yourNumber, 5, 10, QChar('0')); 5 here corresponds to 5 in printf("%05d"). 10 is the radix, y ...
  • 我认为问题在于: charset.encode(CharBuffer.wrap(cs)).array() array()的javadoc表示它返回ByteBuffer的后备数组。 但支持数组可能比缓冲区的有效内容大....我怀疑在这种情况下它是。 FWIW ...我怀疑Buffer对象的明确用户和ByteArray流对象正在帮助提高性能。 我怀疑你这样做会更好: public static boolean gzipToFile(CharSequence from, File to, Charset ...
  • 好吧,我终于解决了这个问题:我从来没有想过在以太网电缆本身和以太网MAC地址头之间有一层。 当然,我不使用以太网电缆,但我正在使用一个数据包嗅探器,它在每个数据包之后打印一个换行符。 处理完每个数据包后,一个简单的incomingdata.split("\n").slice(1).join("\n")足以解决所有情况下的错误! Alright, I finally resolved this issue: it never occurred to me that there was a layer in b ...
  • 将父元素的显示更改为内联网格,如下所示
    您可以使用多种方法,从简单到高级。 Bruce Schneier提出了两种相当简单的方法: 一种是用n个字节填充最后一个块,所有值都为n,这就是Alex Wien所建议的。 这有问题(包括限制您长度小于256字节的块大小)。 这种填充模式称为PKCS#7填充(用于16字节块)或PKCS#5填充(用于8字节块)。 另一种是附加一个值为0x80的字节(一个值为1000 0000的二进制字节),后跟填充最后一个块所需的零字节。 此方法称为ISO填充,它是ISO / IEC 9797-1填充方法2的缩写。填充本身是 ...
  • 你可以使用数学: int[] arr = new int[digits]; for (int i = 0; i < digits; i++) { arr[digits - i - 1] = number % 10; number /= 10; } 使用模数运算符来检索最后一位数字的值,然后除以十来截断最后一位数字。 You can use math: int[] arr = new int[digits]; for (int i = 0; i < digits; i++) { ar ...
  • 使用GZipStream不应添加过多的尾随零。 但是如果你错误地使用MemoryStream ,它可能会导致这种效果。 它在内部使用byte[]来存储数据。 此内部缓冲区可能比目前写入的数据大,以减少分配数量。 如果你使用GetBuffer()你得到完整的数组,你自己的责任是只使用它的第一个Length字节。 或者,您可以调用ToArray() ,它返回一个具有正确Length字节的新字节数组。 引用GetBuffer()的文档: 请注意,缓冲区包含可能未使用的已分配字节。 例如,如果将字符串"test"写 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)