Posts

Showing posts from 2011

How to use File Upload Control in ASP.Net

How to use FILE Upload Control in ASP.Net Page  ??? File Upload Control has given a great flexibility to Web Programmers by allowing to show the Disk Contents of Client Machine and also makes it available to be saved on Server, so that may be retrievece and used later on as and when required. We will be understanding the concepts of this control with the help of example explained below: On your Page, Draw a FILE UPLOAD Control with a name "FileUpload1" and a Button having the Text  "Upload"  When the "Upload" button is clicked, you need o write following code which is meant to upload  only  JPG format image file     dim str as String     if     FileUpload1.hasFile   Then                                                                       ...

Consolidating your Data in Microsoft Excel 2010

Image
Consolidate Consolidate means to summarize data placed on different sheets (having same layout) into a single sheet. To do so you need to organize and arrange your data as per following specifications : Make sure that each data range should be in list format along with having same layout for each sheet Each data range should be on different sheet but not on the sheet where you want to consolidate data Selected Data Range where consolidated data will be placed, having sufficient space towards down n left side After organizing,   Select the cell from where you want to begin the consolidated date and it should have sufficient available space towards its Right and Downside Then select Consolidate command available under DATA Ribbon. A dialog box, like shown below appears, where you need to specify the data details for consolidation Consolidate Dialog Box Specify the Cell Range for Each reference Sheet and then Click ADD to add in the reference list. Specify where the Labe...

List of C Programs that makes u understand concepts in an easy fashion(Part2)

In Part 1 of this Ready Solution Kit, we have taken in to consideration, program based on Loops mostly. Here goes various implementations for Arrays(1-D and 2-D), Character Array, Switch, Sorting(Bubble Sort & Selection Sort) etc. Program  9  Ask for month number and printf how many days main() { int month; clrscr(); printf("Enter Month Number:"); scanf("%d",&month); switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: printf("There are 31 Days"); break; case 2: printf('THere are 28 or 29 Days"); break; case 4: case 6: case 9: case 11: printf("THere are 30 Days"); break; default: printf("Invalid Month Value"); } getch(); } Program 10 : Program to determine greater among three numbers main() { int a,b,c; clrscr(); printf("Enter First Number;"); scanf("%d",&a); pri...

List of C Programs that makes u understand concepts in an easy fashion(Part1)

A very Good Day to all my Readers, Today i received a Query Regarding solutions towards common C programs, using which one can understand the concepts of C in easy Way. So here is a complete Ready To Use Solution Kit for you reader Program 1 Program to print A to Z along with equivalent ASCII Value main() { int ch,c; clrscr(); c=1; ch=65; printf("Alphabet\t\t ASCII Value\n"); while(c<=26) { printf("%c",ch); printf("\t\t%d",ch); printf("\n"); ch=ch+1; c=c+1; } getch(); } Program 2 : Write C program to calculate Factorial of given Number main() { int fact,num; clrscr(); printf("Enter Any Number:"); scanf("%d",&num); fact=1; while(num>=1) { fact=fact*num; num=num-1; } printf("Factorial is %d",fact); getch(); } Program 3   Program to calculate Sum of first n natural numbers #include <stdio.h> main() { int n,t...

Learning Tally in easy steps(Part III)

Common Accounting Group and their Definition Capital (also called as पूँजी ) is a group that holds all those ledgers that are concerned to Proprietor in any manner. Capital /Proprietor Ledger- Comes under Capital Group and holds the amount invested by owner into business. Drawings - Comes under Capital Group & holds the amount drawn by owner for his personal use from business. Sundry Debtor Debtors are actually customer or client of your business. All ledgers that belongs to customers are placed under SUNDRY DEBTORS group. These ledgers always show a 'dr' (debit) balance and are considered as our CURRENT ASSETS . Sundry Debtors are also referred to as देनदार i.e from whom your business is going to receive money corresponding to any Credit Sales Transaction. Sundry Creditors Creditors are suppliers or dealer of your business. All such ledgers which are of your supplier's concern, falls under the category of SUNDRY CREDITOR Group. These ledgers always show ...

Implementing Concept of Files, Linked List and Structures all together in C

C has always been a tedious task to learn.Understanding concepts with simple implementation, makes it easy for new programmers . Here , I am giving you the practical implementation for the Advanced C Concepts of Structures, File and Linked List  # include <stdio.h> struct employee {      int emp_code;      char emp_name[20]; }; struct slist {    int ecode;    char ename[20];     struct slist *next; }; struct slist *fp,*ep,*p,*temp,s; struct employee  emp; main() {    int ch;    FILE *fp1;    fp=NULL; // when the list has not been created yet, pointer to first node is set to NULL    ep= NULL; // Last Node Pointer also set to NULL    fp1=fopen("emp.dat","r");    if (fp1==NULL)    {         printf("Error Opening File");         getch();         return;     } //start readin...