Can someone suggest me some .net development code for Real time updates in gridview?
I have one gridview in my webform. If i upload file in fileupload to sqlserver, my gridview from another computer or another browser then my current browser will automatically refresh with the changes. I don't need click manuallly refresh button or F5 to see the changes in my gridview.
thanks.
here is the some option you can use
use a timer of the client and periodically poll for changes
use WebSockets
use Server-Sent Events (Content-Type: text/event-stream) but this
is not supported by IE
signalR
Related
How do I use the signal R when the information in the database has changed the entire page to reload?
Or how can one bind the grid view again?
I am having a developed application and everything works perfectly in visual studio 2010 in local machine.but when I deploy my application in IIS7 classic pool mode, the ajax controls are working fine initially.But once postback is happening none of the of Ajax controls are working?
Please help me in this.
What do you mean by none of them are working?
Shot in the dark, you are likely removing and reloading dom elements that you bound to events previously. Once the new dom elements are loaded you will need to rebind any events such as click to them at that point.
Is it possible to navigation to any website like google.com using Webbrowser or any other .net technology like silverlight, html5 etc. in a webpage and programmatically enter in textbox "stackoverflow" and then click search button and then get the results back to save in the database. But most importantly show the whole process of navigation and textbox filling and button click and results to the user in the browser window and webpage.
It can be easily done by putting a webbrowser control in a windows form in windows .net assembly so that user also sees it. But I was wondering if this can be done in a web based way. User must be able to see everything in the browser page in the same way it happens in a windows form with the webbrowser control.
I want to develop a web-based software that does web automation and also show it to the users as it is happening without user downloading any exe etc. Just web based.
Actually it can be done to some extend. But to show the entire process to the user, its another issue. How do you want to share the screen ?
there are a lot of 'browser automation' tools like watin or selinium, where you can 'make' the browser execute actions which are pre-defined.
Again where do you want to 'execute' these all ? In clients browser or on server ? If you do in server, you can share the screen via some streaming API's to the client via flash or silverlight.
I am having strange problem while testing my application. Every time i make change in .aspx page "means change any html", and when i refresh the page it takes me to the login page.
Thus the Session is expiring every time i make change in .aspx page.
I was not experiencing this problem before.
I am using Visual Studio 2012 with TFS
Any Suggestions
Thanks
Changing .aspx does not mean changing html. If you using and changing server controls you have to rebuild app every time before lunch.
If you don't want Session to drop after recompile you can use StateServer(ASP.NET session state service)
You can check more here: Session-State Modes
In ASP.NET which event fires when page is loaded in clients browers. Init, Load, PreRender event fires when page is not loaded in clients browser. Basically I have to some work when page is displayed in client's browser..
Instead of ASP.NET (server-side code) you might be more interested in Javascript (perhaps using jQuery's document.ready() which runs when the page has completed loading.)
Edit: The best answer I can come up with using only ASP.NET is OnLoadComplete()
There is no event like that. To understand why you have to understand how a web application works. The ASP.NET code runs on the server to build the contents of the web page, then the server sends the contents down to the browser which is running on the user's machine.
So the document being opened in the browser isn't even part of the ASP.NET page lifecycle. As far as ASP.NET is concerned, that page is now the browser's problem and it has already moved on to something else.
To make an analogy, it is like wanting to be notified when someone receives a letter that you (ASP.NET) mailed to them. Unless the recipient (the Browser) sends back some kind of communication there is no way for the sender (ASP.NET) to know what is happening somewhere else.
If you want to do something when the page is loaded in the browser, you need to write code that is run by the browser. Usually this is in the form of a script embedded in the page, usually in JavaScript.