{"id":142,"date":"2009-08-01T12:42:12","date_gmt":"2009-08-01T07:12:12","guid":{"rendered":"http:\/\/ksblog.teaduniya.com\/?p=142"},"modified":"2009-08-01T12:42:58","modified_gmt":"2009-08-01T07:12:58","slug":"iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process","status":"publish","type":"post","link":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/","title":{"rendered":"IAsyncResult and IcallbackEventHandler in dealing long running process"},"content":{"rendered":"<p>Lets face it! Whether you use Ajax or you don\u2019t in case of a long running process the browser often shows a \u201cTime Out Error\u201d, while leaving you restless.<br \/>\nIncase of ASP.NET AJAX if you use a script manager then also you will be prompted to define the time out for the request and in most cases it is impossible to predict as we hardly know how long the process will take to execute.<br \/>\nA solution was much needed and now a days AJAX is being largely used to handle long running process coupled with the IAsyncResult and IcallbackEventHandler.<br \/>\nIt is just the client server architecture, which defines the web application methods. Quite naturally therefore whenever the client hits the server, the server replies. However, in case of a long running process a particular mechanism is needed to determine the time when the long process will be over! To take care of this issue now a day using IAsyncResult is indeed common. Using this interface it is pretty simpler to run asyncronous processes on the server side, while invoking one method on server side without hindering the continuity of the other tasks.<br \/>\nWhen the first method is completed, then it automatically calls another server method while letting you update some parameters according to your likings.\u00a0 While IAsyncResult ensures the successful running of the asyncronous processes, the Icallback Handler can be adequately used to check for the parameters like VARI and VAR2 as soon as the updated values are generated, thus changing the status of long running method on client.<br \/>\nThis further takes care of the LongRunningMethod registration for the delegate while invoking the LongRunningMethod.<\/p>\n<p>Now when you try to invoke the LongRunningMethod try to register the AsyncCallback method for further accuracy and effectiveness in dealing the long running process in ASP.NET.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lets face it! Whether you use Ajax or you don\u2019t in case of a long running process the browser often shows a \u201cTime Out Error\u201d, while leaving you restless. Incase of ASP.NET AJAX if you use a script manager then also you will be prompted to define the time out for the request and in<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,27],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-aspnet-sql-server","category-internet-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog\" \/>\n<meta property=\"og:description\" content=\"Lets face it! Whether you use Ajax or you don\u2019t in case of a long running process the browser often shows a \u201cTime Out Error\u201d, while leaving you restless. Incase of ASP.NET AJAX if you use a script manager then also you will be prompted to define the time out for the request and in\" \/>\n<meta property=\"og:url\" content=\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/\" \/>\n<meta property=\"og:site_name\" content=\"Karmick Solutions Blog\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-01T07:12:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-08-01T07:12:58+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/\",\"url\":\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/\",\"name\":\"IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog\",\"isPartOf\":{\"@id\":\"https:\/\/karmicksolutions.com\/blog\/#website\"},\"datePublished\":\"2009-08-01T07:12:12+00:00\",\"dateModified\":\"2009-08-01T07:12:58+00:00\",\"author\":{\"@id\":\"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/cf5a770829ddb81d1ca17198eb2ef6e5\"},\"breadcrumb\":{\"@id\":\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/karmicksolutions.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IAsyncResult and IcallbackEventHandler in dealing long running process\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/karmicksolutions.com\/blog\/#website\",\"url\":\"https:\/\/karmicksolutions.com\/blog\/\",\"name\":\"Karmick Solutions Blog\",\"description\":\"Technology meets perfection\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/karmicksolutions.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/cf5a770829ddb81d1ca17198eb2ef6e5\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d4d449754b9b7d52189c88a44ed708d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d4d449754b9b7d52189c88a44ed708d?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/www.karmicksolutions.com\"],\"url\":\"https:\/\/karmicksolutions.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/","og_locale":"en_US","og_type":"article","og_title":"IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog","og_description":"Lets face it! Whether you use Ajax or you don\u2019t in case of a long running process the browser often shows a \u201cTime Out Error\u201d, while leaving you restless. Incase of ASP.NET AJAX if you use a script manager then also you will be prompted to define the time out for the request and in","og_url":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/","og_site_name":"Karmick Solutions Blog","article_published_time":"2009-08-01T07:12:12+00:00","article_modified_time":"2009-08-01T07:12:58+00:00","author":"admin","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/","url":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/","name":"IAsyncResult and IcallbackEventHandler in dealing long running process &#8211; Karmick Solutions Blog","isPartOf":{"@id":"https:\/\/karmicksolutions.com\/blog\/#website"},"datePublished":"2009-08-01T07:12:12+00:00","dateModified":"2009-08-01T07:12:58+00:00","author":{"@id":"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/cf5a770829ddb81d1ca17198eb2ef6e5"},"breadcrumb":{"@id":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/karmicksolutions.com\/blog\/iasyncresult-and-icallbackeventhandler-in-dealing-long-running-process\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/karmicksolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"IAsyncResult and IcallbackEventHandler in dealing long running process"}]},{"@type":"WebSite","@id":"https:\/\/karmicksolutions.com\/blog\/#website","url":"https:\/\/karmicksolutions.com\/blog\/","name":"Karmick Solutions Blog","description":"Technology meets perfection","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/karmicksolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/cf5a770829ddb81d1ca17198eb2ef6e5","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/karmicksolutions.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d4d449754b9b7d52189c88a44ed708d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d4d449754b9b7d52189c88a44ed708d?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.karmicksolutions.com"],"url":"https:\/\/karmicksolutions.com\/blog\/author\/admin\/"}]}},"fimg_url":"https:\/\/karmicksolutions.com\/blog\/wp-content\/themes\/karmickblog\/assets\/frontend\/images\/no-image.jpg","formated_date":"August 01st, 2009","plain_excerpt":"Lets face it! Whether you use Ajax or you don\u2019t in case of a long running process the browser often shows a \u201cTime Out Error\u201d, while leaving you restless. Incase of ASP.NET AJAX if you use a script manager then also you will be prompted to define the time out for the request and in","custom_feature_img":null,"_links":{"self":[{"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":2,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/142\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karmicksolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}