C Program to Perform Matrix Addition

Output 1: output 2 :

While i was working with a C# application I got the need of getting all the database names in a ComboBox, I googled and found some queries to get the list of all database names. If you are working on master database, the query will be any one of the… Continue Reading Retrieving List of All DataBases in Sql Server

In this post we will see the textbox validation using KeyPress Event in Windows C# . For this i am taking two textboxes on a form one is  txt_Name and another is  txt_Mobile .  And i am taking one error provider on form. The Form designed as shown in figure… Continue Reading Textbox Validation using KeyPress Event in C#

WWW : www stands for World Wide Web also called as Web in short. Web is an application at the top of internet provides a way of accessing/sharing information through  the medium Internet. It Supports formatted documents and the documents are formatted in a markup language called HTML (Hyper Text… Continue Reading What is World Wide Web (www) ?

In previous post we have seen  simple example for uploading files in ASP.NET. And in this post we will see uploading files of particular type. We have to filter the file type based on its Content Type(MIME type). Here I am discussing about uploading doc/docx files in asp.net. Add a… Continue Reading Uploading MS WORD ( DOC / DOCX ) FILES IN ASP.NET

Sample Output:

SANDBOX DEFINITION: A  SandBox is a security Mechanism.It is a separate or restricted environment created to run untrusted programs or untested code by the third parties. -> It provides a fully controlled environment which restricts the resources for the programs run in it. -> It is mostly used for testing… Continue Reading WHAT IS SANDBOX IN COMPUTER SECURITY TERMS ??

In this post we will see a small example to understand the file upload control in Asp.net. For this take a fileupload control, button controls and a label on form default.aspx, code given below.

And then add a new folder “uploads” to your website. The C# code in the… Continue Reading Simple example for UPLOADING FILES IN ASP.NET

In this post i am posting a simple C# console program to start with ADO.NET. This may help the beginners in understanding the insertion of data into a database from a C# program. Before going for the program create a table in sql server using the following command:

Now… Continue Reading Simple C# program with ADO.NET

STEPS WHILE WORKING WITH SQL SERVER  : -> Step 1: Import the library at the top.

->Step 2: Construct the “Connection” Class object.

-> Step 3: Assign the Connection String. If u are using Windows authentication in Sql Server, then the  Connection string will be like this


Before you go through this post go for the link to know about % operator. -> As % operator cannot used with DOUBLE values, as it generates compile time error, there is a special function ” fmod( ) ” in c. -> fmod( ) return type is double. So, we… Continue Reading How to perform Modulus / Mod operator on double values (OR) FMOD( ) function in C Programming