简体   繁体   中英

Update Textbox in page (real time)

I'm edited my question, I have a submit button and textbox in Default.aspx page. I'm open two window Default.aspx. I want to input text into textbox and press submit in this window, other window will update textbox real time.

Please help me !

What you are looking for is similar to chat application. On receiving a value from one client(browser window), you want to send it to another.

Take a look at SignalR is a good option to keep push data to connected clients.

However if you do want to do it yourself for some reason, the most efficient method to build this in asp.net is to use a IHttpAsyncHandler and ajax requests.

Here is a complete working project that implements this , along with ajax.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM