Skip to main content

Posts

Getting started with AngularJS.

Getting started with AngularJS. In this article I am going to demonstrate about how to create basic AngularJS application. In this demo application our main concern will be on creating first AngularJS application using module, Directives, Expressions. What is Angular JS? A client-side JavaScript Framework for adding interactivity to HTML. If you’re using JavaScript to create a dynamic website, Angular is a good choice. •Angular helps you organize your JavaScript •Angular helps create responsive (as in fast) websites. •Angular plays well with jQuery •Angular is easy to test Directives A Directive is a marker on a HTML tag that tells Angular to run or reference some JavaScript code. Modules •Where we write pieces of our Angular application. •Makes our code more maintainable, testable, and readable. •Where we define dependencies for our app. var app = angular.module('company', []); In above line angular is ref of Angula...

TempData in Asp.Net MVC

What is TempData: TempData in ASP.Net MVC is dictionary object derived from TempDataDictionary. TempData class which retains the values for subsequent HTTP requests where as ViewBag and ViewData retains value only for the current request. Important Note: The important point here is TempData stores it values in session. In that case you may think What’s the difference between TempData in ASP.NET MVC and Session?” or “Why we have TempData dictionary object?, Why can’t we use the Session object directly?” The answer is simple. TempData gets destroyed sooner than the session object. That's whenever it is used(read) in subsequent HTTP request that is in the next controller then it will automatically get destroyed whereas session objects exists until we manuallyt destroys it.   But if needed we can persist the tempdata for subsequent requests too. I will explain how to persist the tempdata in asp.net mvc in my next article. When we can use TempData? 1. TempData is mainly used ...

Compare Data Tables Using LINQ Union, Except and Intersect

In this post i am going to explain about how to compare two datatables using  Union, Except and Intersect LinQ operators.

Asp.Net - How to Create Dynamic Pages & Url With C#.Net,VB.Net

In this tutorial i am going to explain how to create dynamic pages with unique urls for each page. Before proceeding to explain the process of creating dynamic page i would like to explain what is mean by dynamic page so that you will understand better.

Asp.Net Serialization & Deserialization with C#.Net and VB.Net

While sending data (objects) over the network the need for serialization arises. The reason is our network infrastructure and hardware understands bits and bytes but not the objects. In this tutorial i am going to explain how to serialize and deserialize data without using any third party libraries i.e. using Serialize() method in the JavaScriptSerializer() static class in System.Web.Script.Serialization namespace provided by the .Net Framework itself.

How To Use HTML5 DataList Control

As a develop we are very familiar with the html controls. Now in html 5 many new controls has been added to the existing collection. HTML5 DataList is one of the type in the new collection. I am going to explain about what is datalist control and how to use datalist control in our projects.

Asp.Net DataTable Manipulation - Add, Update,Delete & Sort DataTable in C#.Net & VB.Net

In the asp.net developer's life it is very common to come across the datatable manipulation. So here i have decided to explain the datatable manipulation like adding records to datatable, editing and updating datatable records,deleting records from datatable based on the condition and finally sorting datatable based on columns.

Increse Decrease Font Size | Zoom In Zoom Out Text Size Using jQuery

Overview: In this tutorial i am going to explain about how to increase and decrease font size or how to zoom in and zoom out text using jQuery and javascript. WE can increase and decrease font size or zoom in and zoom out text for the entire page as well as for a particular part of the page.

jQuery Code/Script To Make The First Word Bold

Overview: In this tutorial i am going to explain about how to make the first word bold using jQuery script. For this using regular expression i am finding the first word from the target element and then adding the <strong> tag to that word then replacing it in the target.

Binding One DropDownList Based On Another DropDown List | Cascading dropdownlist in ASP.Net C#.Net

In this tutorial I am going to explain about how to load the one drop down list using another or cascading drop down list in ASP.Net  and C#.Net. It is achieved by passing the selected value of the one dropdown list as parameter to another drop down list.

Regular Expression To Strip/Remove Html Tags From String in ASP.Net C#.Net VB.Net

In this tutorial i am going to explain about how to strip/remove html tags from the string using regular expression in asp.net and C#.Net or It is achieved by using the System.Text.RegularExpressions namespace.

Sort Dictionary Based On Value In Asp.Net And C#.Net | Convert Dictionary into KeyValuePair or KeyValuePair into Dictionary.

In this tutorial i am going to explain about how to sort dictionary object based on value in asp.net and C#.Net or convert unsorted dictionary to sorted dictionary object in C#.Net and VB.Net or Convert Dictionary into KeyValuePair or KeyValuePair into Dictionary.

Get All Coutries From System.Globalization Namespace | List All Countries In DropDownList

In this tutorial i am going to explain about how to get all coutries in the world from System.Globalization namespace or get all countries in asp.net and C#.Net or get all countries and bind it to the dropdownlist in asp.net .

ASP.Net Web Api Model Validation Using Validation Filters

In this tutorial i am going to explain about how to validate Model properties in asp.net mvc web api. It can be achieved by using the attributes from the System.ComponentModel.DataAnnotations namespace to set validation rules for properties on your model.

Convert String To Upper,Lower & Title(Proper) Case in ASP.Net C#.Net & VB.Net Using TextInfo Class

In this tutorial i am going to explain about how to Convert String To Upper,Lower & Title(Proper) Case Using TextInfo Class in System.Globalization Namespace in ASP.Net, C#.Net  and  VB.Net . Using the ToLower(),ToUpper() and ToTitleCase() static methods in the TextInfo class can be used to achieve this.

Build Products Comparision Table/Grid in ASP.Net C#.Net and VB.Net

In this tutorial i am going to explain about how to Build Products Comparision Table/Grid in ASP.Net,C#.Net and VB.Net. In this tutorial i did it using nested for loops.

How To Create Help Pages(Documents) For Asp.Net Web API

In this tutorial i am going to explain about how to create help pages to asp.net web api using Microsoft.AspNet.WebApi.HelpPage  package. Here i will explain how to add the help page for existing Web API as well as the new Web API Project that has to be created.

How to Add Store Custom Objects in Configuration File(web.config & app.config) in ASP.Net & C#.Net

In this tutorial i am going to explain about how to add Custom objects in configuration file(web.config) and access it in the pages. Custom objects can be created by creating the class that inherit From ConfigurationSection (It is available under namespace System.Configuration ).

How to create simple mathmatical captcha in ASP.Net C#.Net and VB.Net

In this tutorial i am going to explain about how to create simple mathmatical captcha in asp.net c#.net and vb.net. The basic idea is generating two numbers using random function and storing the addition of that two numbers in the session and also converting the numbers into image using the available libraries. On the target page where the captcha is implemented we will have the textbox to get the input from the user and check the textbox value is equal to the session value. It it is equal then we consider the user is a human else it is a robot. In my previous article i have explained about Visual Studio Keyboard Shortcuts , How To get data from WEB API , How To Create Your First WEB API Project , Check Container Exists In Azure Blob , Convert Datatable To Json Data Array , How To Show Tooltip On Mouse Hover In Gridview and many articles in C#.Net , VB.Net , Grid View , Javascript , jQuery , SQL Server and many other topics. Here to explain the process i have created an empt...