html

Render Pdf bytes array within browser in MVC

Render Pdf within browser There are different ways to render Pdf in a browser. In this I’m explaining to render Pdf by fileContent/byte array. In a below example I’m using Index Action which returns the FileContentResult. public ActionResult Index() { Response.Clear(); Response.AddHeader(“Content-Disposition”,“inline; filename=sample.pdf”); Response.AddHeader(“Content-Type”,“application/pdf”); Response.ClearHeaders(); Response.AddHeader(“Content-Length”, byteArray.Length.ToString()); FileContentResult result = new FileContentResult(byteArray, “application/pdf”); return result; } …

Render Pdf bytes array within browser in MVC Read More »

How to achieve multithreading in Java Script

Achieve Multithreading in Java Script Alright, before we start let me admit that JavaScript is a single-threaded environment, JavaScript historically suffers from an important limitation that all its execution process remains inside a single thread. On the web you may found the various ways to archive multi-threading but as far as I know, the only way is HTML5 Web …

How to achieve multithreading in Java Script Read More »

HTML5 Local Storage and Session Storage

Local Storage and Session Storage Before HTML5, application data of web applications are stored in cookies. In this article I will explain you what is Local Storage and Session Storage Object, How we can use it our application, What is the difference between Local and Session Storage object. Why HTML Local Storage better than cookies. So lets  start with What .