c# - ASP.NET WEBForms - see steps in real time -
let's assume have page button. on button click have event function called.
protected void btnclick(object sender, eventargs e) { panelsteps.visible = true; panelsteps_detailsaboutrecords.controls.add(new literal { text = "dads"}); system.threading.thread.sleep(5000); // wait 5 seconds panelsteps_detailsaboutrecords.controls.add(new literal { text = "bda" }); system.threading.thread.sleep(5000); // wait 5 seconds panelsteps_detailsaboutrecords.controls.add(new literal { text = "cdsa" }); system.threading.thread.sleep(5000); // wait 5 seconds panelsteps_detailsaboutrecords.controls.add(new literal { text = "ddsa" }); system.threading.thread.sleep(5000); // wait 5 seconds panelsteps_detailsaboutrecords.controls.add(new literal { text = "dase" }); }
in browser see panel after entire function executed. why? , how can see in browser steps function in real time?
you have client-server architecture client web browser , server c# "server-side" code executes. server-side code, listed in op, finishes , bundled "response" object before client sees it.
Comments
Post a Comment