• Microsoft .NET C# (C-Sharp)

    Microsoft .NET C# articles, samples, code snippets, applications, books, products.

    Execute Shell Commands in C# using Process Class without showing Output Window

    by  • May 3, 2017 • Microsoft .NET C# (C-Sharp), Microsoft .NET Framework • 0 Comments

    This example show you how to execute shell command using C#. It uses Process and ProcessInfo, and ProcessStartInfo classes. It also hides the shell window while showing the output and instead shows the output on the Console. Copy this code and run it in a console app to see the results. Best WordPress...

    Read more →

    How to Inherit a Class in C# ASP.NET

    by  • January 20, 2016 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET • 0 Comments

    We will discuss Inheritance in C# here. Inheritance is one of the most important concepts in Object Oriented Programming. Inheritance is the ability to create a class from another class. This also provides an opportunity to reuse the code for better functionality of the program.  Instead of creating new function and data member, a...

    Read more →

    How to use Model Validation in ASP.NET MVC

    by  • January 6, 2016 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET MVC • 0 Comments

    When an online customer fill a data entry form, then we as a web developer, have to ensure that submitted data is in correct format. For this purpose ‘Model Validation’ is used. Validation checks the accuracy of model’s representation of the real system. Model validation means the model possess the satisfactory range of accuracy....

    Read more →

    How to Build HTML Views using Razor View Engine in ASP.NET MVC

    by  • December 31, 2015 • Microsoft .NET C# (C-Sharp), Microsoft ASP.NET MVC • 0 Comments

    View Engine is responsible for rendering the View to the browser in the form of HTML.  By default there are two view engines in ASP.NET MVC4. First is ‘Webform’ and second is ‘Razor’. Razor is a markup syntax that lets u to embed server side code into your HTML Markup code. When a view is...

    Read more →

    How to Make Decision in C#

    by  • December 28, 2015 • Microsoft .NET C# (C-Sharp) • 0 Comments

    Any program that does any real work will have to make decisions. These decisions are based on meeting certain conditions—or rather, running code only , when a particular condition or state is met. The central piece of decision making is a special C# statement called an if-else statement. If-statements are a key part of programming. They let you make decisions...

    Read more →