c# - ASP.NET page is blocking in code behind -
an asp.net page blocking inside code behind, when accessed second time within same session. 2 calls within same session sort of serialized, shouldn't.
it not disable session state page:
<%@ page enablesessionstate="false" %> ... <div runat="server" id="lblmsg"></div>
code behind part:
using system; namespace sysweb { public partial class blocktest2page : system.web.ui.page { protected void page_load(object sender, system.eventargs e) { // show time this.lblmsg.innerhtml += datetime.now.tostring() + "<br />"; system.threading.thread.sleep(4000); this.lblmsg.innerhtml += datetime.now.tostring() + "<br />"; } } }
when open 2 tabs in browser (tested in firefox , chrome), , call same page same url, times shown on each page show 1 call blocked until first done completely. start/end times not overlap, if start both calls @ same time.
why? how can changed?
when using third browser different session, nothing blocked, start/end-times shown overlap intended. using different ?-querystring-param allows concurrent execution in same browser. how can asp.net configured execute such calls parallel, , not sequential?
Comments
Post a Comment