Posts

Showing posts with the label JavaScript

Upload video on YouTube in ASP.NET or MVC

Image
I n this post you will learn how to upload video on YouTube from your application. I’ve used ASP.NET Web Forms a s well as MVC bits to implement all functionality easily. You can achieve similar functionality ASP.NET Web Forms or MVC a lone .

Disable Browser Back Button

In this quick code you will learn how to disable browser back button. As this is a client side solution, I would never suggest to use when it comes to confidential websites like banking sector.

Query string values in JavaScript

Image
In this quick code you will learn how to get query string (browser address bar's variable) values using JavaScript.

Technical reviewer of Microsoft TypeScript

Image
The very nice people at PACKT Publication recently asked me to technical review one of the upcoming new book   TypeScript , and you know I never miss such opportunities to review book and become its part. Greedily, to get reviewer name printed on book gives great feel.

Display Images and its name, size before uploading to server by using FileReader - JavaScript File API

Image
If you look at my previous post Single File Upload to Multiple File Upload , it display size of the file after upload.

Mustache.js - Getting Started with Mustache.js in MVC: Video

Image
In this video post you will learn how to use Mustache.js JavaScript library in MVC for client side templating.

Getting Started with Mustache.js in MVC

Image
In this post you will learn how to use Mustache.js JavaScript library in MVC for client side templating.  I will take you through few easy steps to setup it and working.

TypeScript: JavaScript like Programming Language by Microsoft

Image
Okay, here is a great news, Microsoft has released a developer preview of TypeScript, a new programming language like JavaScript that is translated into JavaScript so that its apps can be run in any browser. In other words, TypeScript is a superset of JavaScript and you write it like you write JavaScript. And today, I explored it and I am sharing it with you.

Best practices for speeding up your website - web performance optimization

In this post I would like to share my strategies for web performance optimization and speeding up website, here's my list with tools or technologies I use: 1. Code minification and bundling By this process we remove comments and extra spaces as well as crunch variable names in order to minimize code. Code minification applies to CSS, JavaScript or HTML codes and code bundling applies to CSS and JavaScript codes, in some cases we bundle HTML codes also. If you use Visual Studio, then it has an extension Bundler & Minifier (by  Mads Kristensen) this tool can easily bundle and minify codes inside IDE. You can configure this extension for automatic bundling on build as well as you can use this to manually select files and then bundle and minify. Another way with Visual Studio web applications which I like the most, is by using bundling and minification NuGet packages, this automatically bundles and minifies when you publishing project in release mode. There...

Bundling and Minification in Visual Studio 2012 or Migrate existing Website

Image
Bundling and minification are two new techniques introduced with ASP.NET 4.5 Beta to improve request load time.   It improves load time by reducing the number of requests to the server and reducing the size of requested assets (such as CSS and JavaScript).

How to get Selected ListBox Item using JavaScript

This is a quick post in response to a question asked by my one of the follower on Facebook and the answer is pretty simple. Here is the question I have been asked:-

Stop form Submission (Posting) on Enter Key Press

This is a quick hit post. If you are developing a form in ASP.NET you may be noticed that when we press enter key even without writing any information in textboxes, form gets post (submitted). So, how do you stop it?

Making Clone on Web Page using jQuery

Image
Introduction This post shows how to make the clone of elements on web page using jQuery, for this we will use .clone() method. Sometimes we want to copy (clone) elements on web page, for example, navigate menu can be placed on header and footer too and there may be many situations come to us where we need to clone. Why write something twice if we have opportunity to use jQuery. So, let's create a demonstration page for this talk. < body >     < h2 > History of Visual Studio </ h2 >     < div class ="mainBody">         Visual Studio's history probably begins in < strong class ="year"> 1975 </ strong > with Bill and Paul's decision to create Altair BASIC.  Maybe you could start before that but I think that's as far back as you could go and still say it's about Visual Studio at all – it's at that time that Microsoft decided it was going to have software de...

JavaScript OnLoad() and OnUnload() Methods

Using OnLoad() <html> <head>  <title>JavaScript Popup</title> </head> <script type="text/javascript"> function poponload() {     testwindow = window.open("", "mywindow", "location=1,status=1,scrollbars=1,width=300,height=300");     testwindow.moveTo(0, 0); } </script> <body onload="javascript: poponload()"> <h1>JavaScript Popup</h1> </body> </html> Using OnUnload() <html> <head>  <title>JavaScript Popup</title> </head> <script type="text/javascript"> function exitpop() {     my_window = window.open("", "mywindow1", "status=1,width=300,height=200");     my_window.document.write('<h1>Popup Example</h1>'); } </script> <body onunload="javascript: exitpop()" > <h1>JavaScript Popup Ex...

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System