My demand is such, I wrote a asmx file for someone else to tune, others after the callback can pass me the related data, asmx after getting the data, I would like to send my own web application, let me the style of the web application to news play screen pop up, took the asmx to data in the screen, along with all of my asmx and web applications within the same project, could you tell me how to solve this kind of demand, which is implemented,
CodePudding user response:
It is the simplest ashx has been training in rotation but more consumption of resources, it is recommended to use SignalR
CodePudding user response:
The
big watermelon a WuYiJin reference 1 floor? Response: it is the simplest ashx has been training in rotation but more consumption of resources, it is recommended to use SignalR. Does that asmx after receiving the data, I directly to a web application in asmx aspx page to send a request and then inside the aspx receive play screen? This way is workable, so need not polling, namely asmx once called aspx hair in the past CodePudding user response:
The big watermelon a WuYiJin reference 1 floor? Response: it is the simplest ashx has been training in rotation but more consumption of resources, it is recommended to use SignalR. On this, although means a lot, but we won't give you write, so you have to choose difficult disease refer to the second floor wjfstrive response: Quote: big watermelon a WuYiJin reference 1 floor? Response: It is the simplest ashx has been training in rotation but more consumption of resources, it is recommended to use SignalR. Does that asmx after receiving the data, I directly to a web application in asmx aspx page to send a request and then inside the aspx receive play screen? This way is workable, so need not polling, namely asmx'll send aspx after once called As for you said well, we ask, server requests to give who see, show the website administrator? CodePudding user response:
Scenario is that the third party when I write asmx, take customer data sent, asmx to get the data to me, I want to push the data again for my web page, a web page, in the form of news play screen pop up, as long as login web page or I specify some login web page to play screen, no matter any page in your web site will he play screen to remind, asmx files and my web site is currently in a project, the demand is such, CodePudding user response:
Wjfstrive reference 4 floor response: scenario is that the third party when I write asmx, the customer data sent, asmx to get the data to me, I want to push the data again for my web page, a web page, in the form of news play screen pop up, as long as login web page or I specify some login web page to play screen, no matter any page in your web site will he play screen to remind, asmx files and my web site is currently in a project, the demand is such, No problem, just SignalR ok, this is the third time, you are repeating several times, we still so answer, (although there are other alternatives, but we said not to other, the only option, lest you represented) CodePudding user response:
This is you, with Java, or company has regular front end, we will choose the websocket, although SignalR is based on the websocket, but for the front end, formal regular android Java, they prefer the websocket directly from the original, that is the standard library, standard code, don't need them to take extra studies CodePudding user response:
For you, anyway with SignalR you to learn, use the websocket you also want to learn But SignalR full demo for.net is ready, you use directly, so we directly give you SignalR CodePudding user response:
Is what I mean, if it's not signalr, asmx after getting data, similar to the web site directly in asmx default. Aspx page request threw the data in the past, and then in default. Aspx page receive data inside and play screen to remind, it is practical CodePudding user response:
refer to the eighth floor wjfstrive response: I mean, if it's not signalr, asmx is to get the data, similar to the web site directly in asmx default. Aspx page request threw the data in the past, and then in default. Aspx page receive data inside and play screen to remind, so whether it is feasible to No, you want to, want to row, the somebody else waste the energy to write you what SignalR ah, to do so, there is no this requirement, you wouldn't do that, the somebody else will not also in the browser to provide you the websocket (don't think the websocket is born in, formal this need more because of you, the browser just spent several versions, countless day and night and artificial, to websocket embedded in) CodePudding user response:
great god tell me no good reason, I have to figure out the principle, the next time avoid into the pit CodePudding user response:
references to the tenth floor wjfstrive response: great god tell me no good reason, I have to clear principle, next time avoid into the pit HTTP stateless, response. Write out, you that's ok with you, you can't find him, Like right now I am typing, CSDN is don't know I was typing at all, unless I press the submit button, the two of us will be to establish a connection (of course I am referring to CSDN useless what websocket) CodePudding user response:
Are written in the book of asmx interface method, once the third party I asmx method, method to get data and then I give default. Aspx page to send a HTTP request to get the data is sent in the past? CodePudding user response:
In a long time ago, the browser does not support websocket, Google ever experiment a means, is that in order to keep fit, the service side deliberately blocking the response. The write output, deliberately maintain such a state But that's Google, you can't, Google could do with a few k server implementations, you want to do this, can have 300 visit, you hung up the server CodePudding user response:
If you don't understand, we didn't also way, can only tell you that Google had to worry about your idea, you will feel like you can, Google oh fuck what kind heart CodePudding user response:
The original poster can try to do your own methods, practical ability is the best teacher, made to deepen the impression, if you have so many time CodePudding user response:
Key used, a great god under the guidance idea, I now asmx web site and I are in the same project, below is that if you use the websocket is still in the project background to build a c # service side, front desk set up a client, to establish a connection, then asmx data via server-side data, and then to the client processing and bounced remind logic, is such an idea? CodePudding user response:
SignalR put directly, his demo ran it again and you will understand the Why use SignalR? That's because somebody else has a demo, and hub this is specially written for.net, you said you want to push, just two words, the context find hub, then the call is finished CodePudding user response:
So I said earlier, already don't want to mention other, lest you STH over and over again CodePudding user response:
Ok, I understand the first, there is a problem in the process of consulting you again CodePudding user response:
Ask again, use SignalR, server to the client sends the message, not all of them to send, I want to give one shoes special account login notification message, these special accounts need to be in a web application where I use business logic judgment screening, this can be achieved CodePudding user response:
1. Open the Visual Studio, and then select the new project, 2. In the New Project dialog box, click on the Web under Visual c #, and create a New, called SignalR StockTicker ASP.NET Web Application Project, nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull