How to check if the page has finished loading? When possible, how can I execute a method already created in C # code for this page?
I would like to organize the following sequence of events
download()
How can i do this?
Does this answer your question?
Usage example (in C # code)
protected void Page_Load(object sender, EventArgs e) { Page.LoadComplete +=new EventHandler(Page_LoadComplete); } void Page_LoadComplete(object sender, EventArgs e) { // call your download function }
Use jQuery and make a callback to open the xls file.
There are several solutions described here POST to server, receive PDF, deliver to user w / jQuery
You can basically connect to
$(document).ready(function() { // do window.location or another one of the options to download the file. });
You can do this in javascript DOM:
window.onload = function() { download() }
Source: https://habr.com/ru/post/904227/More articles:iphone CLLocationmanager System health monitoring not called - iphoneCreating complex custom metadata on images via python - pythonMissing required property: og: url property required, but missing - c #Topshelf - manipulators - c #Why does using IN (...) when selecting by indexed fields lead to a decrease in the performance of the SELECT query? - mysqlPassing by reference does not work with additional parameters for array_walk_recursive, unless this is an outdated call forwarding - pass-by-referenceProjects in Project Browser disappeared, but remained on disk - eclipseFailed to load IDLE (Python GUI) - pythonDelphi - grab all action.onexecute from application - delphicreating uiview software? - iosAll Articles