Showing posts with the label ASP.NET

Entity Framework Videos in Hindi Language

Want to learn Entity Framework then I got some videos for you in HINDI Language, go ahead and watch it.

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

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).

5 Ways to send data between ASP.NET Pages

How many ways do you know to send the data between ASP.NET Pages? In this post I’m going to list 5 different ways. First 2-3 ways are very well-known and last 2-3 ways are not much popular. You will find here mostly inline methods to receive the data on different pages. You can download the complete code here .

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:-

Using 'Like' operator in parameterized queries

The main advantage of parameterized query is to protect the database from SQL Injection. Today I used this concept in my one of the project. Do you know using ‘Like’ operator in parameterized query is bit different?

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?

Calling an ASP.NET C# Method (Web Method) using JavaScript

Another title of this post would be “Say bye-bye to Postbacks”. Sometimes we need to stop annoying post-backs on ASP.NET Web Pages. For example, when one click the ASP.NET button on webpage, by default page gets post-back. So, how we stop this by keeping proper code-behind method calls. Let’s look at one case.

Free E-book: Time-Saving VS11 and ASP.NET 4.5 Features You Shouldn’t Miss

Last weak, two Telerikers Joshua Holt and Carl Bergenhem introduced a very nice free e-book for developer community to get job done quickly with less code. Very nice book, read it once.

Creating PDF Files in ASP.NET using iTextSharp

iText is a library that allows you to create and manipulate PDF documents. It enables developers looking to enhance web and other applications with dynamic PDF document generation and/or manipulation.

Image Map; Mouse Hover Effect on Area using jQuery

Another easy but interesting stuff I found today on (Hindi Language e-News Paper) and decided to develop it on my PC. If you open Google and search by typing “Image Map in HTML” you will get huge response and you can start learning this from there but here I got something different for you. I will take the advantage of jQuery Library for this. I’ll start discussion from very basic. Wanna see how? Let’s begin.

Data Binding to DropDownList and ListBox in ASP.NET

Introduction In this quick post you are going to learn how to bind the data to DropDownList and ListBox controls in ASP.NET. I know this is very easy but today a novice ASP.NET guy who is my friend on Facebook asked this to me and I created this solution for him.

Merge the content of DataSets in ASP.NET

Introduction You can merge two or more DataSet objects that have largely similar schemas to present in the same Data Container. In my case, I have two different database tables and I am wishing to display all records from both tables in a single Data Container. For this we can take the advantage of Merge() method in C#.

System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login.  The login failed.  Login failed for user 'IIS APPPOOL\DefaultAppPool'. In this quick post you will learn how to fix this issue. Today in the morning when I was executing one of my web applications I fall in titled error and the same I’m sharing, that how I fixed this.

Advanced Web Debugging with Fiddler Videos

Today I watched a very nice set of videos “Advanced Web Debugging with Fiddler Videos” captured at Microsoft MIX10 and the session by Eric Lawrence (Program Manager, Internet Explorer). I would like to share these videos with you.

Using META Tags to Refresh Pages

If you think of current web application development trend then this solution will not fit for you, because this scenario post-backs complete web page. Today, we have many controls that update any defined section of website (web page) instead of whole web page gets post-back.

Site is under maintenance App_offline.htm : by Shivprasad Koirala (

Today I watched a very nice video “How to put website is under maintenance by using App_offline.htm” by Shivprasad Koirala and the same I am sharing this with you.  

Attribute Starts with Selector in jQuery

In this quick post you will learn how to find elements in the DOM that have the specified attribute with a value beginning exactly with a given string. Actually, this problem was asked by my one of the friend Md Ibrahim Rashid, who is from Kolkata at Kolkata Geeks Developer Conference 2012. Let’s look at the HTML Markup and a problem:-     < div >         < a id ="abc" href ="#"> Link 1 </ a >< br />         < a id ="bdc" href ="#"> Link 2 </ a >< br />         < a id ="acd" href ="#"> Link 3 </ a >< br />         < a id ="cca" href ="#"> Link 4 </ a >< br />         < a id ="adc" href ="#"> Link 5 </ a >< br />     </ div > In the above markups, I have 5 links with id attribute. If you look at id attribute’s value, you will find 3 id’s value sta

AssociatedControlID Property in ASP.NET

I can see many websites today having no such feature like when user clicks on label control textbox gets focus. As you can see in animated image given below, in first login set when I clicked on label control text box not getting focus and the same in another login set textbox gets focus and we can start typing. Reason: Such websites not using AssociatedControlID property. Use of AssociatedControlID property We use AssociatedControlID property to associate a Label control with another server control on a Web form. When a Label control is associated with another server control, its attributes can be used to extend the functionality of the associated control. You can use the Label control as a caption for another control, or you can set the tab index or hot key for an associated control. When the AssociatedControlID property is set, the Label control renders as an HTML label element, with the for attribute set to the ID property of the associated control. You can set

Testing Website using SSL on Localhost (IIS)

Introduction SSL (Secure Socket Layer) is a cryptographic protocol developed by Netscape to provide communications security on internet. Cryptographic technology uses two keys to encrypt data, one for public (public key) and another for recipient (secret key). SSL enabled website communicates with web server by using security channel (secret key) that prevents tempering, eavesdropping (or simply say hacking). Mostly probably SSL is used on login section, payment system, online banking system etc that is very sensitive information for organization. When we enable the SSL for website URL will start with https:// instead of http://. Requirements To test this, you should have IIS installed. No need of extra software like Visual Studio or any other website development kit because only a single HTML file can be tested. Follow the steps to enable SSL on Windows Server 2008 R2 Operating System; another Operating System may have little difference. Step 1 Open IIS Manger and

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

Lambda two tables and three tables inner join code samples