Monday, June 27, 2016

Dotnet interview questions 2016

q.How many types of Compilers ?
ans: Pre –JIT
Econo-JIT
Normal-JIT

Q.How to declare float(like big int with decimal point) values?
Ans: decimal myMoney = 99.9m; have to use m symbol

Q.whether int signed datatype or unsigned ?
Ans: Int is a signed datatype of 32 bit

How many web applications we can able to create using stand alone visual studio?
Ans: 0-65536 ports are available in system so we can able to create 65536 web application using visual studio .net in this some ports are reserved in this total ports i.e. 24,25 for SMPT(mails) 80 default web site

How to display data in grid view without writing code?
Ans: Using data source data control

Q.How to retrieve the matched record from any list without using Loop?
Ans: Using Lambda expressions we can able to retrieve the matched record
      By using variable called var

Q.what is the use of new key word?
Ans: to invoke object and hide some methods

Q.what is the use of is and as keywords?
Ans: type casting

Q.What is ConnectionPooling?
Ans: if we set connection pooling no need of open sqlconnection every time if once open it remains in connection pooling next if we are try to open it checks the status of connection this pooling will take care of sqlconnection

Q.How we improve asp.net Performance?
Ans: Connection pooling,Paging,Recursive methods(avoiding nested pools),caching avoiding try catch blocks…etc

Q.On which designing pattern asp.net is developed?
Ans: Singleton comes under Creational designing pattern

Q.What is Crosspost back in Asp.net?
Ans: In button we have Postback url property if use this link for redirecting the page we can able read the previous page values in redirected page by using namevalue collection class 

Friday, February 12, 2016

How to Create table using javascript

How to create table in javascript ?

use this below to create html table in javascript
html table like below will add to your div element dynamically
<table border="1">
<tr>
<td>
Hello world.
<td/>
<tr/>
<table/>

Code :
var tr,td;   ---variables for row and cell
var Table =document.createElement('TABLE'); ---Here table will create
Table.setAttribute("border",1);    -- adds border to table.
tr=Table.insertRow(0);  --- new row for Table
td=tr.insertCell(0) ;        ---- new cell for tr (Row)
td.innerHTML ="Hello World";   --- Text that you want to display

'lets add this table to Document.

document.getElementById('divMain').appendChild(Table);  --- Div is your body div where you want to add.

more example
for(i =0;i< 20;i++)
{
 tr=Table.insertRow(Table.rows.length);
td=tr.insertCell(tr.cells.length);
td.innerHTML="Hello";
td=tr.insertCell(tr.cells.length);
td=tr.insertCell(tr.cells.length);
td.innerHTML ="World";
 }

document.getElementById("divMain").appendChild("Table");



---- Queries post here.













Thursday, February 4, 2016

MVC 6 and Entity Frame work 6

Model view controller with entity framework we build the application easily.
by using MVC scaffolding.
What is MVC scaffolding it will creates table classes in application.
and take care of the relations between tables....