Dot Net Basics

 dot net is a framework.

 Framework- which supports all form based applications. 

Types of code- 

1) Logical code(dot net -in which tools are dragged and dropped .they are not created using code , only code will be applied logically) 

2) Design code(c++,Java- in which no drag and drop option will be available) 

Dot net support languages- 

1. Java

2. c# [mostly used] 

3. python 

4. vb 

Dot net support Environment- 

1. console application (basic)

2. web application (runs everywhere)

3. windows application (local software)

Basics of dot net- 

int x;//blue words are data types

x=int.Parse(Console.ReadLine());//parsing 

//int.parse- for integer input 

//float.parse- for float input 

//no conversion for string variable

Console.WriteLine(" the value of x is "+x); //Cascading operator 


CASCADING OPERATOR- MESSAGE+VARIABLE

it is a feature of dot net which separates message and variable  

console.writeline("the value is a"+a);

 "+" is cascading operator. 

 

PROGRAM MANAGEMENT:-

Program can be managed by two ways- 

1. using conditions (if else ,switch)//Conditional Statements.

2. using flow(loop) (while, do while,for) //looping Statements. 

  a) while loop is called Entry loop. 

  b) do while loop is called Exit loop.

Types of Statements- 

1. body statements (inside body)
2. block statements (inside conditions)
3. container statements(inside functions) 

Features of Good Programming- 
1. Minimum length. 
2. Fastest execution. 

Drawback of while loop is , it is MULTILINE loop . so, to resolve this we have for loop which is SINGLELINE loop. 


Dot Net Area- 

1. Design( .aspx [it is created by the user]) 
2. Source (html format- Auto-generated)
3. Code(aspx.cs)//when we created .aspx file then 
    .cs(code) is automatically generated along with        .aspx

Dot Net Environment-  

It Consists of Solution explorer(it consists all files ,folders,directory,api or etc), server explorer(all database related work), toolbox(we can view all the tools), property window(properties of controls i.e text is the common property of all the controls) and etc. 

Programming Environment-   

1. User(where the program is build) 

2. Compiler[(i) Grouping the statements. 
                  (ii) Error checking(Syntax error)]

There are two types of Compiler- 

a) ON compiler (In ON compiler the if the error generates then the program will not get executed like c  )

b) OFF Compiler(JIT [Just In Time] compiler- it works on event driven error generation, like if there is an error on registration page then the button of registration will show an error but the login will work properly) 

3. Interpreter[(i) it reads the code line by line 
                       (ii) Runtime error(Logical error)] 
             

How to create your first web application in dot net:- 

File-> New-> Website[select visual c#(language) -> asp new website ] 

Rules:- 

1. Remove all files from solution explorer .
2. Remove account folder.

How to create your first web form (In dot net , web page is called as web form)

1. Select root from solution explorer. 
2. goto Website menu -> Add new item.
 

Comments

Popular posts from this blog

Parameter Query

Final Project

Grid View Paging