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

Injection Flaws

Injection Flaws Injection flaws means that when application sends untrusted data to break out the context of target web application as a part of query. Injection flaws are very common in the developer code. It mainly founds in SQL, LDAP, Xpath...

How to bind XML Data using XmlDataProvider in WPF?

In WPF, we can easily bind WPF controls with xml data using XmlDataProvider. Using XmlDataProvider, we can bind xml data in XAML file itself without writing any code in code behind.   Here, below is the example of XmlDataProvider. F...

Best Practice for Logging using Log4Net

As we all know that Logging is used to log the program's execution and this log information is used for debugging and testing purpose. One can easily find the problem using this log information without seeing the source code. To better write ...

How to update xmlDataProvider when xml document changes at runtime in WPF?

Some time we need a situation where we bind WPF controls with XmlDataProvider and XML is changes dynamically at run time. Then we need to change the data in WPF controls automatically. for eg: we bind list of items with XmlDataProvider and user ...

How to resolve Http 400 Bad Request while authenticating with ONVIF camera

The main point while authenticating with Onvif camera using Onvif wsdl is to create our custom behavior class and pass the camera credentials using that class. Here, below is the code for custom behavior class.   Adding namespace:...

Bind Combobox with XML Data

Combobox control is like a dropdown control which contains the list of items. By default it takes no value. There is a property itemsSource with which we bind the items. To bind combobox with the XML file,we will right click on the project and...

Difference between C# and VB.Net

 C#  CB.Net  1. It contains a “using” keyword to release unmanaged code.  1. It doesn't contains a “using” keyword.  2...

DataBinding in WPF

Hello Readers, Data Binding is a concept which is used to bring/display data in UI controls from source object. DataBinding in WPF is binding between the source object and the destination UI element. With data binding in WPF you can take data ...

ItemsControl in WPF

WPF has so many controls to bind the data. They all have different shapes and perform different according to their functionality. There is a simplest control ItemsControl in WPF which is used to bind the list of items. There is no shape and st...

ASP.NET : Binding ArrayList to DataList

Binding ArrayList to DataList DataList is a web server data bound control which display data items in repeating list. DataList provides an optional facility of selecting and editing data items. In DataList,Templates defines the content and lay...

DataContext in wpf

DataContext is one of the basic concepts in Data Binding which make sure to inherits the information from their parent element that is used for Binding and the other characteristics of the binding. It is extremely useful while designing WPF appli...

Simple AngularJs Application Using Asp.Net MVC

In this blog,we will learn to create a simple angularjs application using Dotnet Framework.So Let's start to implement it step by step.   1.Open Visual Studio and Create a New MVC project.   2.Now create a MVC5 Empty...

Why do we need Generics in Object Oriented Programming explained through C# program?

using System; using System.Collections; namespace DrawbacksOfNonGeneric { public class Person { //Properties public string Name { get; set;} public int Age { get; set;} //Constructors public Person(){} public Person...

How to bind ArrayList to DropdownList in Asp.Net?

To bind arraylist to dropdownlist,you have to add a namespace System. Collections which allow the collection of items in the application. So in Code behind page 'aspx.cs' we have to add namespace,see the below reference: using Sys...

Get dropdownlist selected value/text using javascript in asp.net mvc

A dropdownlist is a list of items from which user can select one or multiple values at the same time. Every dropdownlist contain two items one is a value and another is text. Here in the given example,there is a list of student names in which ...

How to set favicon in Asp.net mvc

Whenever you open any website, you see an small icon or image on left side of the window tab, That small icon is called Favicon. If you have not noticed earlier,then just open any website and check. For an example: open www.w3schools.com and s...

Client side validation using jquery in Asp.Net MVC

Jquery is client side scripting language which runs the scripts on client's browser to check user's inputs are valid or not. Before submitting the form to the server,jquery authenticate that user has entered all the valid text in input fi...

Request LifeCycle in Asp.net MVC

This blog will explain how the MVC lifecycle works to provide a response to the user's browser. We run our MVC application in the browser and see the rendered view, So we will understand how actually that user request is able to get the respo...

Partial View and Layout in asp.net mvc

Partial view in asp.net mvc provides the reusability feature in the application. We can use our partial view in layout page which works as a master page for all the views of our application. To understand it better, First we take the Example o...

How to create a partial view in Asp.net MVC

This blog illustrate how to create a partial view in Asp.net MVC by using below steps:   Create a model class for partial view   using System; using System.Collections.Generic; using System.Linq; using Syste...

WPF Triggers

Introduction : A WPF trigger changes one or more properties of a control in response to an action when a pre-defined condition is met. For example, we can use a Trigger on IsMouseOver event to change the font of the control. Triggers allow y...

A simple Reactjs Counter Application in asp.net MVC

ReactJs is a facebook library which is developed to handle views for the web and mobile applications. To implement React in your Asp.net MVC application, first, user need to add the ReactJs references in your application. As I am cre...

.Net :Lambda expression

.Net :Lambda expression Lambda expression was introduced in C# 3.0 and .Net framework 3.5. The Lambda expressions are the easiest and shortest way of writing anonymous methods.   Lambda Expression have some special syntax represente...

StaticResource and DynamicResource in WPF

In my previous article, we talked about XAML resources that were mainly covered, Whats is the pupose of XAML Resources and Where can be it declare?  Now, we will discuss StaticResource and DynamicResource in XAML.   In XAML, Resou...

XAML Resources

XAML resources is a object that is a collection of properties. A resource can be reused in different places of WPF application. The example of resources are mainly Styles and Brushes which are used in your WPF application. Resources can be declar...

Paging in Asp.net MVC

STEP1: To enable paging in your mvc project,First you need to install PagedList.mvc Go To Tools=>Select Nuget Package Manager=>then Select Package Manager Console. See the Screenshot for reference. You will get a nuget windo...

WPF : Dependency Property

Introduction :   A dependency property is a type of property which extends the CLR property by adding more functionality. The difference between the two is, that while the value of a .NET property is fetched directly from a private m...

Bind arraylist to gridview in Asp.net

Gridview is a rich control of asp.net c#,it fetches the data from database and display data in the form of columns and rows(tabular form). There are features for CRUD operations in gridview, User can perform edit,update,delete operations with the...

How to upload a file using Asp.Net MVC and AJAX?

In this blog we illustrate how we can upload a file using ASP.Net MVC and AJAX.   Follow the below steps to upload a file:   Firstly we need to create model which contains the properties such as name, length and type o...

Files actually to be committed in source control

Hello Reader, In Visual Studio, while you are working on a project. Many files i.e. source files and visual studio generated files etc are present in the directory of project on your machine. If you want to use source control,  there is a...

WPF : Routed Events

Introduction:   WPF infrastructure provides support for routed events which allows events to tunnel down the visual tree to the leaf element or vice versa bubble up to the root element. Routed events typically appear as a pair and they...

How to do client side validation in Asp.Net MVC?

In this blog, we illustrate how to enable a client side validation in Asp.Net MVC.   Firstly we need to understand what is client side validation in Asp.net MVC.   Client side validation: All Client side validation is han...

Bind ArrayList to ListView Control in C#

C# consists a ListView control which contains a list of items and the items can have different forms either number,text or images. To add columns in listview we can use: ListView.Columns.Add("EmpName", 1000); To understand it bette...

Two dimensional array in c#

Two dimensional array is a form of matrix in which users can have rows and columns as per need. We can think of table in which x no.of rows and y no.of columns are available. Syntax:  int item = a[i,j] This is a two dimension...

How to export datatable to excel in asp.net?

To export datatable in excel, First create an excel file at any location on my computer. In my example, I have created a blank excel file in D drive named as "DataTableToExcel.xls". First, we will add some data in datatable, Either w...

How to keep scroll position in Asp.net?

In asp.net, there are different ways to retain scroll position on postback. After Postback vertical scrollbar leave its position and access the same position on the page so to resolve this problem asp.net gives a property: “MaintainScrollPo...

Convert byte array to string

In this blog we see how to convert byte array to string using following methods: 1. Convert byte array to string using Convert.ToBase64String This method is used to convert the specified byte array to its corresponding string format which i...

Understanding directives in AngularJS

Directives are an important feature of AngularJS which are used to extend HTML and create reusable and testable code. The framework provides a set of rich built in directives and we can also build  custom ones if required. In this tutorial w...

Understanding scopes in AngularJS

An  AngularJS application uses an object called $scope which is shared between controller and view.  This object holds the Model data that is passed to the View and acts as a glue between Controller and View. In this blog we will dive d...

.Net Framework : Garbage collection

Garbage collection is an important technique in .Net that is used to free the memory for unused object that are no longer referenced.It has the following benefits.   1. It enables you to develop an application without having worry to f...

Form Validation with AngularJS and ASP.NET MVC

In this blog, we will learn about form validation in AngularJS. From Angular 1.3 onwards, ngMessages module has been introduced and we will be using the same for form validation. Before the addition of this module, developers had to make use dire...

Convert byte array to string using Encoding.GetString(Byte[])

Encoding.GetString(Byte[]):   Encoding.GetString(Bytes[]) method is use to decode the specified byte of an array to string. This method needs a encoding class to make a encoding object. This encoding object can be a following two class...

Using AngularJS and ASP.NET MVC to create a Hello World Application

In this article we will learn to create a simple Hello World application using AngularJS framework and ASP.NET MVC.   AngularJS : Introduction AngularJS is JavaScript framework used for creating single page web applications and is m...

C# : Understanding pass by reference and pass by value

Below is the program to demonstrate various method calling conventions followed in C: using System; class Program{ public static void Main(){ // ========================= PART I =======================================================...

How to improve Asp.Net web application performance ?

Many times, the web application goes slow down, after go live on a production server. There may be two reasons - hardware issues where you deployed the application or the CPU and memory usage are high due to not using resources efficiently inside...

BitConverter.ToString()

In C#, many times we need to convert a byte array to string format. In this blog, we are going to illustrate how to convert the byte array to its corresponding string format by using BitConverter.ToString() method.   Syntax: public ...

ASP.Net : Abstract class with real time example in C#

ASP.Net : Abstract class with real time example in C#   1) A class is called an abstract class if it is marked with an abstract keyword.   2)The reason for which abstract class came into existence is that it provides a...

How to find which .NET Framework versions are installed on machine?

  There are different method to find which .NET Framework versions are installed on machine.These are:   1. Using Command Prompt   Open command prompt window and type the following command: dir %WINDIR%\Microsof...

How to create .Net classes from xml ?

There are few steps to convert XML to .Net classes. These are: 1. Copy your XML content from any file. 2. In Visual studio, open the file where you have to create classes in .Net  3. Place the cursor in that position, Go to menu bar->...

Some new great features in .NET 4.5 framework

Readers, .Net Framework 4.5 came up with lots of great features. The new features of the core framework .Net 4.5 are difficult to read and run through because it does not fit depending on what are you working currently on. Many developers skip...
1 5 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: