ASP.Net MVC和放大器;彗星(WebSync) [英] ASP.Net MVC & Comet (WebSync)

查看:157
本文介绍了ASP.Net MVC和放大器;彗星(WebSync)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现我的ASP.Net MVC 2.0项目彗星。我使用 WebSync 从FrozenMountain。我的网站是codeD在C#4.0和ASP.Net 4.0。

I'm trying to implement comet in my ASP.Net MVC 2.0 project. I'm using WebSync from FrozenMountain. My website is coded in C# 4.0 and ASP.Net 4.0.

彗星code被触发的[HttpPost]属性(即使该网页不刷新或出现后)我的MVC控制器功能。有没有一种方法来确定什么是被发布,而忽略在这条路线我的的global.asax.cs

The comet code is triggering my MVC controller function with the [HttpPost] attribute (even though the page doesn't refresh or appear to post). Is there a way to determine what is being posted and ignore that route in my global.asax.cs?


  • 请注意,我知道如何忽略与MVC的路线,这不是问题。

推荐答案

在冰封山的先生们帮我解决这个问题的这里

The gentlemen at Frozen Mountain helped me solve the problem here

有人打我的MVC控制器的功能之一。我不得不加入到我的global.asax.cs

It was hitting one of my MVC controller functions. I had to add this to my global.asax.cs

routes.IgnoreRoute("{*allashx}", new {allashx=@".*\.ashx(/.*)?"}); 

这篇关于ASP.Net MVC和放大器;彗星(WebSync)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆