问题描述
我想实现我的ASP.Net MVC 2.0项目彗星。我使用从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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!