Reverse Ajax Comet/Polling Implementation For .NET MVC?
Jul 21, 2010I am looking for ASP.Net MVC implementation for reverse ajax comet/polling. Can anyone provide some good link or tutorial
View 2 RepliesI am looking for ASP.Net MVC implementation for reverse ajax comet/polling. Can anyone provide some good link or tutorial
View 2 RepliesI'm trying to implement an auction website and I search in web the Ajax Push is the best way where I can use! So, I'm finding some samples in web to learn how to implement Ajax Push (comet) in client and server. By the way, I find some samples in ASP.Net Webforms, but no in MVC version. I'd like to find a demo, sample, anything ... that use MVC
View 3 Replieshave here a (internal intranet) site where users can preserve places for the lunch and pause... :)Now, meanwhile the users count grows more and more and the ajax site that speeks with a webservice for the calculations und checks geting slower and slower... user 900+The site checks every 5 seconds for the actual state and uses groups for the users.Ok, now i have researched on the web, and found the comet/reverse ajax aproach that the service can push the clients with events.But i have not found any good asp.net tutorial with visual studio (2010) how i can use the asp.net standard controls and vs design mode.Is there a framework for that stuff?
View 3 RepliesWhat is the correct way (or best) way to implement Comet, HTTP Push, or Reverse AJAX?What .NET implementations would you recommend?
View 1 RepliesThinks at a backgammon online multiplayer game with over 100, or even 1000 online users. The game communication is done using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario ?
Didn't so many Comet open connections block the server resulting in big latency ?
I implemented a chat using the COMET "way" described in this article: http://www.codeproject.com/KB/aspnet/CometAsync.aspx
In this example, the client connects for 5 seconds every time. I wanted to hold the client longer, for about 10 minutes.
My problem is - how to detect if the client disconnected during those 10 minutes? I tried using Response.IsClientConnected but it returns true even if I close the client. There must by some inidicator since the socket gets disconnected if I close the client.
We have an issue when our web application runs under reverse proxy.
The reverse proxy change the URL for the website from for example: "http://TestWebApp/" to: "http://ProxyDomain/Test/" when it runs under reverse proxy which is mapped to "http://TestWebApp/" and rout requests to it.
This raise an issue of root relative paths (paths that start with "/" to be relative to the root of the web application i.e. "/Folder1/Test.aspx"). Generally all paths that need to be rendered to client we use ResolveClientUrl method and all is good.
When using Ajax controls and ScriptManager WebResource.axd paths are rendered in script tags as a relative url paths ("/WebResource.axd?blablabla") because the root under reverse proxy is the proxy domain itself the path is useless - the web resouce is not downloaded and the application break.
To fix this we tried to set a Response.Filter in OnPreRender event handler of our base page. In our custom filter we use Regex to search and replace all "/WebResource.axd" occurences with the resolved to client root path using the ResolveClientUrl method of the page. This works great and the web resources are downloaded to client.
But this is not the end of our troubles.
In Ajax requests the response output is fixed as described but when recieved at the client end it is not valid and the partial update fails with Sys.WebForms.PageRequestManagerParserErrorException.
It fails to parse the response because the rendered response have numbers that states the actual count of bytes per rendered component (which includes the script tags referencing the WebResource.axd). The client reciever validates the recieved response according to the numbers, but, our filter altered the response so the numbers are not correct and the response validation fails.
We can try and code a smart filter that parse the response and recalculate the numbers according to the ammount of paths fixed, but I hope there is an elegant and better solution for this.
I am currently making a line chart of Ajax control toolkit referring to an article [URL] .....
It works fines as described. My question is how to reverse Y axis of the line chart.
I need to place 1 (not 0) at the top of Y axis and biggest number near the bottom with some margin from axis X. The described chart is biggest number neat the top and 0 at the bottom.
use a textbox and the AutoCompleteExtender to search for the customer. For example, on the PurchaseOrder form, I have a textbox with a Customer field, and when I type in the name of the customer, the AutoCompleteExtender shows the possible matches.Now, it takes a few seconds to show the list of values, even with setting the correct values on the extender, and if the user types in the name of the company, e.g. Contoso, and leaves the textbox, there might be 2 Contoso's in the database. The AutoCompleteExtender does not continue when the user leaves the textbox, thus the CustomerId is not determined yet.
View 1 RepliesI am new and want to work on MVC. I have Nerddinner and Music store. Is there any other sample application for MVC2 with AJAX implementation?
View 3 Repliesi have a template page which open from several page and load the data from several tables in data base.want to know what is the best way to implement this tepmlate page?i want some nice control to implement this page.i wrote its code but want use some graphical controls like rad window to implement it. i use rad window but it doesnt enough to me.
View 1 RepliesI've been implementing Seadragon (as part of the ACT), but have recently found some users complaining of slow speeds whilst using it - I thought this odd because the whole idea of Seadragon and DeepZoom is streaming images as they're required rather than loading one huge image in one request.
I've done a bit of testing (using Firebug) on both our web pages and the ASP.net ACT Sample website Seadragon control, and have found that when the control is opened on screen, the browser decides to load all the tile images at once (even the tiles which aren't at the default zoom level).
Has anyone else experienced this and does anyone know why it does it/if there's a fix? The fact it happens on the ACT sample site has left me tearing my hair out because I know that it's not just my implementation of the control that's causing problems.
This is Ravi and like to learn AJAX concepts,and wrote small application ,but getting response along with html page .
<table><?xml version="1.0" encoding="utf-8"?><CategoryList><Category ID="01"><MainCategory>XML</MainCategory><Description>This is a list my XML articles.</Description><Active>true</Active></Category></CategoryList></table>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml">
<head><title>
[code]...
I want to do some polling to fetch data from Yahoo Financial Service for my website to update stock quotes. I want this to work through out the day ( 6 hours ). How to do that ? I am using GoDaddy as my server.If its not possible, please recommend any other option. No heavy stuff is involved. I just need to fetch that data only which can be done with only one line of code and with even javascript. It needs to start without waiting for a visitor to visit the site.
View 1 Repliesi have done one website and i upload to all file in server..After two day i got error from website starting page Timout error.. too many connections are there so polling timeout..
View 2 Repliesmy website is developed using asp.net, vb.net and sql server 2005.Now i want to develop a polling system, using vb.net or XML.and the polling sytem must have feature which is one person from one computer can only vote once per day. isitors of my site will not vote more than once per day.so can u redirect me to a site where i can get a steps to build this voting sytem or a source code to be downloaded freely?
View 4 RepliesI'm doing a polling application and I am trying to look for the best jquery charts/graphs that I could use on my application to display the results of the polls.
View 4 RepliesIs there any efficient way for polling data to the server?I have to know if there's an update in the table tblalert. I used the PageMethods and setInterval in javascript to run the method. But the SQL Server having too much stress, lets say 200 users log at the same time... and the set interval is set to 3 secs
View 7 RepliesRequirement:I need to poll the folder (which is in my web application) lets say for example UploadDocs. i want 1 SQL JOB that will run periodically to check the new arrivals in this folder. I know how to create sql jobs but dont know how to do sql logic.
View 1 RepliesDo all comet style applications require a loop somewhere in the application on the serverside to detect updates/changes? how the logic behind a loopless comet style application would work?
View 3 RepliesI'm making an application with server sided variables that change every second. Every second those new variable need to be shown at all the clients that have the webpage open. Now most people told me to go with comet because I need to push/pull the data every second, now I've got a few questions: What would be a better solution looking at the fact that I need the new data EVERY SECOND, pulling from the client or pushing with the server?
Also the item ID's that are on the server side (with the variable's that ID got) can change and when the client refreshes the page he needs to get the oldest (and living) ID's. This would mean that my jquery/javascript on the client side must know which ID's he got on the page, what is best way to do this? Last thing is that I can't find a good (not to expensive) comet library/api for asp.net (C#). Anyone ever used a comet library with good results? We're looking at a site that should be able to have 2000 comet connections at every moment.
I am looking for a free implementation for Comet or Push. Here is an example of chat done by comet:http://www.phpchatsoftware.com/phpbb/I have my own server.Is there any thing like this?P.S. I am using asp.NET, on server and jQuery on client.Is there anything new? or maybe this is the last technological free open source achievement:http://www.codeproject.com/KB/aspnet/CometAsync.aspx ?
View 4 RepliesI have an asp.net web application. I don't have the source code. The bin contains 10 assemblies and a .compiled file. I used Reflector on the App_Code.dll and it shows me classes and namespaces and stuff, but its such a mess.Is there any way to reverse engineer this web app that won't take weeks/months to unfold? The application is pretty basic.
Note, the code is written by an engineer that left the company. We own the product.
(Not sure if I'm creating this post in the right place. Feel free to move if needed.)
I'm trying to enable full DNS lookup including hostname. Having trouble. I've followed the instructions here
(http://support.microsoft.com/kb/297795) with no luck. Request.ServerVariables("remote_host") still returns only an IP Address.
[Code]....
I've also tried using DNS.GetHostEntry(IPAddress) and the depricated DNS.GetHostByAddress(IPAddress). All I ever get back is the IP Address with no host name.
IIS 6.0, Windows Server 2007 Server Pack 2, .NET 2.0
We have nearly completed an ASP.NET MVC web application running with SSL in IIS and now find that we must integrate with a third-party product that is supplied as a PHP web app running under lightppd on an alternate port, but still on the same server.
We want to make the integration appear as seamless as possible, so our initial strategy is to do all of the authentication through our application, implement a reverse proxy to expose selected features from the third-party product, and then set-up the third-party product to only be accessible from localhost and (if we can manage it) only from the user our app pool runs as. As a second layer on top of this, we plan on running the third party active content in an IFRAME, so we can surround it with our menus and headers. With the right fonts and colors, hopefully, it won't look grossly out of place.
First question: Is this strategy totally naive? Given the hand we've been dealt, is there a better one?
Second question: What is the best way to implement the reverse proxy? I was thinking of using a routing rule with an Http Handler that invokes our usual authorization just as a controller would and makes the requests to the other site, streaming out the results it receives. Is there something that already does this generically, that I can just hook up and invoke? Maybe some way to specify a controller to handle everything I need to proxy and then use a ViewResult that represents a call to an external URL I construct from the URL I received?
If I can get a few pointers on what to look for, I can trot off to the docs for the details.