Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

What is checked keyword in c#

Arithmetic operations are very basic in every strongly type programming languages. We will oftenly save the result of this arithmetic computation in certain type of variable.  Suppose if I am adding two integers then i will save the result i...

Get Thumbnail Image from Video Using FFMPEG in C#

FFMPEG is a command line tool to convert multimedia files to another formats. In this article, we will see how to get thumbnail image from a video using FFMPEG in C#.   Step 1: Create a page to show the thumbnail image of a video &...

WPF : Deselect items in TreeView

In this blog we will learn how to clear/deselect selected items in TreeView while working on a WPF application. There following scenarios need to be considered before coming up for a solution to the problem:   1) The TreeView is bound&...

Strong Named assembly

Strong names are used by the assemblies for their unique names. It is used when we want to deploy the assembly in Global Assembly Cache then strong name helps Global Assembly Cache to differentiate two versions. Strong name is basically a unique ...

How to bind a dynamic dropdown list

In this blog we illustrate how to bind a dynamic dropdown list when dropdown list is coming from a databse in MVC See the below Example code: We bind a dropdownList for a States where the list of states is coming from a database.   W...

Abstract Classes-Why and How?

Hi Friends, Previously in one of my blogs (actually two of them) I was trying to decompress the very compressed definition of delegates that it is a pointer to a methods. Here we will try to decompress another definition or statements for an a...

WPF : Binding when DataContext not inherited

Introduction : The DataContext property in WPF is extremely useful because it is inherited by all children. However there are situations where  the DataContext is not accessible as the elements are not part of the visual/logical tree. In ...

WPF Converter : Show autoincrement number in ListBox

Introduction If you want to do data binding between  incompatible types, you need to use a converter. A converter converts the value from source type  to target type and vice versa. A value converter is a class, that implements the s...

Validation Group in asp.net

Validation group in asp.net helps to validate controls in a group. we can define any number of validation group on a page as per requirement. Each validation group will work independently than other. We set a ValidationGroup property with the sam...

Where should we use IEnumerable vs IQueryable in LINQ

Both IEnumerable and IQueryable are used for data manipulation in LINQ. As IQueryable interface derives from IEnumerable interface so that whatever IEnumerable can do, IQueryable can also do. IEnumerable exists in System.Collections namespace ...

IEnumerable, ICollection and IList Interfaces

IEnumerable is the core of the ICollection and IList interfaces.   IEnumerable Interface: IEnumerable interface is used to iterate values. Usually, it is used with the help of a foreach loop. It has only one method i.e. GetEnumerato...

Material UI in WPF-Part 2

Hi Friends, In the previous part we’ve seen some Material controls and they look pretty impressive. You don’t have to put extra effort for styling standard controls and need a little effort for out of the box controls like sliders ...

Material UI in WPF-Part 1

Hi Friends, I think most of you have heard of Angular Material UI and those who have seen it, they do like the clean and minimalistic idea and very simple layout which actually looks stunning. But that is for web. Now what if we want it for ou...

Convert file to Byte Array and Get back file from Byte Array

In this article, we will learn how to convert a file into byte array and get back the original file from the byte array via FileUpload control.   Step 1: Create a page having control FileUpload and Button   <div> ...

Delegates-How do we use them in C#?

In the Part-1 we learned about an abstract view of delegates and how we use them. In this article we will see the implementation of delegates which is obviously the basic one but will help you understand that how you will implement that for a UI ...

Date Range Selection in datepicker

Many times we need to select from date which should not be the greater than current date and to date must not be less than from particular date. In this blog illustrate how we can select the date range in datapicker. We can achieve this with the...

Delegates-What are they and What do they do?

In .Net we often listen to the word “Delegate” and whenever asked about the same in interviews or somewhere else, there is a short and sweet answer-“The delegate is a pointer to a method.” The answer is simple, concise ...

Update Record in Acumatica ERP

Hi Friends, Previously i tell you how to insert record in Acumatica ERP. Today i will tell you how to update record in Acumatica ERP. Below code will be used to update the record in Acumatica ERP. var maint = PXGraph.CreateInstance&...

Pagination using Angualr js in .Net Project

 In this blog I will try to explain about using Angular pagination directive in a .Net project with the help of an example. Please follow the following steps to implement dir-pagination directive in your project: Step 1: Download dirPa...

Create a dynamic table when data is coming from database in MVC

In this blog, we illustrate how to create a dynamic table when data is coming from a database in MVC and display it. In the below example we use a dummy data and jquery to populate the HTML table. In controller, we have an action method calle...

Display initials if no profile pic available

When we create an application its very easy to display user image or profile pic. when no image is available then we used to include an anonymous image in place of no image is available. But Gone were days and now we have something rich...

CONVERT() function in SQL Server

CONVERT()  function is basically used to converts an expression of one data type to another data type. This function display date/time data in different formats.   Syntax:- CONVERT(data_type(length),expression,style) data_type...

Essentials for Chat Application using SignalR in MVC

SignalR is a new library for .Net developers for creating real time web functionality, can also be defined as asynchronous signalling library. SignalR provides two way communication between client and server. SignalR can be used for creating real...

Select distinct records using Linq

We often need to select distinct records from a list or from database. In Linq, we can select distinct records from a list or collection using Distinct method. Suppose we have a list with the name Employees and we want to select only Distinct ...

Insert Data in Acumatica ERP

Hi Friends, Today i will tell you to how to insert values in acumatica ERP. The Code below is used to insert data in the acumatica erp. Suppose i want to insert data into the EPApproval table. Here firstly i need to create instanc...

Dependency Injection in .Net

Hi Friends,        Today I will brief you about Dependency Injection. In this blog I will cover up the following topics :- About Dependency Injection Real Life Scenario of Dependency. Ben...

Return multile value from a function using Out keyword

 Sometimes we face the situation where we need to return more than one value from the function. But a function never returns more than one value. Here we need to do something different like we create a different function for a different task...

ModelState.IsValid is true when model is null in Web API action method

While calling a Web API action method which receives parameter in model object, there are chances that client sending a request might not send any parameter at all. Well in such case you would be surprised to know that following check will return...

Generic methods in C#

Generic is a feature provided in C# which allows defining the class, method etc without binding it to work with a specific data type, instead it is created with a substituted type which get replaced with the data type passed at run time. In other...

How to create a login page with validation using angular js?

  In this blog, we illustrate how to create a login page with some validation using angular js. To validate a login form data we can use the following to trace the error: 1. $dirty:- It is used to check whether the value has bee...

Abstraction and Interface

Abstraction Abstract defines "what something is". An abstract is a class which cannot be instantiated. It is declared by abstract keyword. A class can inherit/implement only one abstract or other class. An abstract class c...

JSX in ReactJS

JSX is JavaScript syntax extension. JSX is a pre-processor step that adds XML syntax to JavaScript. It isn't necessary to use JSX in React development, but it is recommended. It makes React more elegant. JSX t...

Using multiple submit buttons inside a single form tag in ASP.NET MVC

In this article we will see how we can use multiple submit buttons inside a single form tag in ASP.NET MVC view page, where each submit button will target different actions based on its value. It is important to note that we will use a single POS...

Adding textbox dynamically and save the values in angularjs

To create textbox dynamically in angularjs, we have to declare an array named inputs in which we will push the textbox element dynamically. In input box, we have included ng-model to bind the property name to the input. so we ...

Globalization (or Internationalization) and Localization

Globalization (or Internationalization) In IT industry, Globalization is also known as Internationalization. Globalization is the process of making a product multi-lingual or in multiple cultures/locales. It is the process of designing and dev...

Few user management operations using Identity Framework in ASP.NET MVC

In this blog you will see some code samples that you might find useful while accomplishing simple user management tasks like creating a user, assigning a role and so on. Following code samples assume that you have created an ASP.NET MVC applicati...

Prevention from Cross Site Request Forgery attacks in ASP.NET MVC

In this blog we will get to know about the way to prevent CSRF (Cross Site Request Forgery) attacks in ASP.NET MVC applications. If you want to have some idea about this attack you would like to have a look at this blog http://findnerd.com/list/v...

How to set the zooming slider in windows 8.1 phone app

In this blog we illustrate how to set the zoom-in and zoom-out the focus of camera in windows 8.1 phone app. Foe zooming a camera we use a buit-in ZoomControl class inside the MediaCapture which controls the zooming of the camera.   F...

Value Converter in WPF

What is Value Converter in WPF? Value converter is a class which translates/converts a value from the source type and provide output as target type and vice-versa. It is used at the time of data binding with the UI element in WPF. These classe...

Circle checkbox style in WPF

Creating style for circle checkbox:   <Style TargetType="CheckBox" x:Key="CircleCheckbox"> <Setter Property="Cursor" Value="Hand"></Setter> <Setter Property="Content" Value=""></Se...

How to change button background image on click in WPF

In WPF, to change the background image on button click, we can use ToggleButton. In ToggleButton, we can check whether its checked or not. We use DataTrigger to check its property. Here, below is the example of this:   In XAML: &nb...

UpdateSourceTrigger in WPF

In WPF, this is the property which gets or sets a value at the time of binding source updates. It is used in TwoWay binding. The Mode Sets the direction of the binding and Mode = TwoWay binding means that any changes occurs in target of the ...

How to open a camera in windows 8.1 phone app

In this blog we illustrate the how to open a camera in windows 8.1 phone app. Code for Xaml file: <CaptureElement Height="650" Name="captureElement" /> This CaptureElement control is used to render the capture device like camera or...

How to find all children controls in WPF.

I find child control using VisualTreeHelper in WPF. VisualTreeHelper provides all children in form nodes in a visual tree. Visual tree is used for rendering, routing and locating resource. Namespace of VisualTreeHelper is System.Windows.Med...

Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) mainly occurs when user logs in vulnerable site and then user visit the malicious site in the another tab of browser. Malicious site may contain some code which can call actions/methods from vulnerable site. For...

How to bind nested list in WPF

Here, below is the example of binding nested list in WPF. In below example, I am using nested item controls and WPF Expander to show nested list.  On click of first item, it display sub list of selected item. In these example , I bind ite...

ReactJS Overview

ReactJS is an open source javascript library which is developed by Facebook. It is used for building user interfaces.   Introduction: It is widely used to create mobile and web application. It allows to create reusable UI compo...

How to transfer the GridView data to DataTable?

In this blog we are going to illustrate how to transfer the GridView data to DataTable. To transfer GridView to DataTable: We add button in .aspx page where the GridView display the data. By clicking this button user transfer the GridView d...

Difference between Static Resource and Dynamic Resource in WPF

   Static Resource Dynamic Resource 1. Static resource can be evaluated only once.    1.  Dynamic resource can be evaluated every time when needed. 2. Static resource i...

How to structure a project in ASP.NET MVC using AngularJS?

These are the several steps to structure a project in ASP.NET MVC using AngularJS.   1. Open Visual Studio 2015 -> Select File New Project->Give Project Name->Select a template MVC->Unselect Host in the cloud -> Click Ok...
1 2 4 16
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: