Friday, October 6, 2017

What is angular JS and why we use?

Angular JS is client side java script framework to create the single page web application.

If follows the MVC design pattern

M- Model  It is entity having multiple properties
V-View  It is like HTML or template
C-Controller  It's a javascript object and here we'll write business logic.



Angular JS engine-> communicate->Html->Process template->load template





Saturday, August 15, 2015

Sql Server Question and Answer

Sql Server Question and Answer

What Is index


C# 6.0 latest Featues


Auto Property Initializer: In this we can intilize our properties at the time of declaration>it is just like a field declaration.

Public class User
{
public string Fname{get;set;}="Akash"
public string  Lname{get;}="Ramesh"
}


Primary Constructor:

public user(string FName,string LName)
{
public string Fname{get;set;}=Fname

}

Exception Filters:-
try
{
throw new Exception("Hello")
}
Catch(Exception ex) if(ex.Message=="Hello")
{
//It will run

}
Catch(Exception ex1) if(ex.Message=="Hi")
{
//Not Run

}

Index Initializes or Dictionary Initializer:
var num=new Dictionary<int,string>
{
[1]="one",
[2]="two"
};

Monday, August 10, 2015

Find

int arg = Convert.ToInt32(e.CommandArgument);
        int index= ((GridViewRow)(((Control)e.CommandSource).NamingContainer)).RowIndex;

Boolean value
bool MyBoolValue= Convert.ToBoolean(collection["showAll"].Split(',')[0]);

Saturday, August 8, 2015

Create a Public/Private Key Pair

Create a Public/Private Key Pair

At the command prompt, type the following command:
sn –k <file name>
In this command, file name is the name of the output file containing the key pair.

sn -p keypair.snk public.snk

Row Index at grid view row command event

Row Index at grid view row command event


 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        int arg = Convert.ToInt32(e.CommandArgument);
        int index= ((GridViewRow)(((Control)e.CommandSource).NamingContainer)).RowIndex;
    }

Friday, August 7, 2015

Interview Questions

oops question
 1.what is object oriented programming?
 2.what is the properties of oops?
 3:what is abstraction.
 4:what is method hiding?
 5:what is method overriding?
 6:what is method overloading
 7:what is virtual function?
 8:what is late binding and early binding?
 9:what is pure virtual function?
 10:what is runtime and compile time polymorphism?
 11:what is shallow copy and deep copy?
 12:what is class and objects?
 13:what is encapsulation
 14:what is vitual table in c++?
 15:what is multithreading?
 16:what is threading?
 17:what is exception handling?
 18:what are datatypes?
 19:what are identifiers?
 20:what is variable?
 21:what is operator overloading?
 22:what is static polymorphism?
 23:what is reserved keywords?
 24:difference between class and struct?
 25:difference between overloading and overriding?(V.imp)
26:difference abstact class and interface?(V.IMP)
28:what are aggregation and compostion
29:what is access specifies?(imp)
30 wha is constuctor?



c sharp:
what is events and method?
what are properties?
what are delegates?
what are sealed class?
what is static class?
what is static method and private method?
what are difference between const and readonly?
what is enum in c sharp?

dot net framework
what are library and namespace?
what are difference between dll and exe?
what is dot net framework?
what are static,shared and statellite assembly?
what is portable executable files?
what is ildasm command?
what is assembly manifest and metadata?
what is assembly?
what is clr?
what are difference between cls and cts?
what is jit(just in time compiler?)


sql server?

what is dbms?
what is rdbms?
what is constraints?
what are keys in sql server?
difference between primary key and foreign key?
Difference between primary key,unique key and foreign key?
what is sql?
what are commands is sql?
what are joins?
difference between union and unionall?
What is dml command?
what is procedures in sql server?
what is triggers?
what is functions?
what is view in sql server?