freshers/Experienced Dotnet jobs

24/07/2011

Explain Asp.net Page Directives


Why State Management ?


In traditional web programming information associated with the web page and with controls of page will be lost between post-backs.

Ex:-when user enters some text in text box (or) mark a check-box (or) selected an item in combo-box,that information(changes) will be lost in the round trip from client/browser to server.

To overcome this Asp.net Introduced severel methods to store data on the client-browser/server and retrieve from client-browser/server.

23/07/2011

Job Posted Company Location Position Eligibility Last Date DETAILS
20/8/11cognizantAll over IndiaMulti postions B.E/B.Tech/B.Sc 29/8/11 Register
8/8/11SoftSolHyderabadExp(1-2 Yrs) B.E/B.Tech ASAP Register
8/8/11cognizantAll over indiaFreshers(2011) BCA/BSC/MSC 12/8/11 Register
8/8/11HCLAll over indiaFreshers(2011) B.E/M.Tech/MCA/B.Sc ASAP Register

22/07/2011

Asp.net useful Tips

1)Use informative  ALT attribute for every graphical representation(PNG files,JPEG files) to show who cant view these graphical representations.

21/07/2011

Difference between Dispaly:none and Visibility:hidden



Display : None    Removes the element completely from the document without taking any space eventhough HTML for it still  remains in the source code.

Visibility : Hidden  Hides the element but it still takes up space in the document therefore affecting the layout.








Difference between APP_Code & APP_Data folders in ASP.Net ?

  • App_code folder contains all .cs/.vb files and they will compile automatically when ever you change anything in the files within.  code present in App_code folder is automatically referenced by asp.net web application.
  • App_data folder is used to store files that can be used as database files(.mdf/xml files) .It will be created automatically when a new website is created.Developers use this folder for storing database used by Asp.net application.

Explain Asp.net Page Directives


Does dotnet support multiple inheritance?

  • c# and vb does not support multiple inheritance.
  • They supports only multiple interface inheritance.

How to delete duplicate rows from tables with no primary key!

Ans) Use SET ROWCOUNT value

Ex:-     SET ROWCOUNT 2
           DELETE FROM table_name WHERE somecolumn1=somecolumnvalue
           SET ROWCOUNT 0

         Imagine a table having 3 similar rows.The above delete statement executes 2 times deleting the extra 2 rows.Dont forget to set ROWCOUNT to 0 after succesfull query execution.



Explain OOPS Concepts


17/07/2011

INDEX Statement

  • Indexes are used to search/query the data from the table, without reading the entire table.
Advantages:-
  1. Allows the application to find the data fast from database thereby increasing the query speed.

16/07/2011

DROP,DELETE & TRUNCATE

DROP:- Tables,Databases,Indexes can be easily removed using DROP Statement.
           
EX:-DROP TABLE table-name
                 Deletes table completely from database.

 similarly DROP INDEX index-name
              DROP DATABASE database-name

12/07/2011

server side code vs clientside code ?

Server side code executes on the server.

Authenitication & Authorization

Explain Localization & Globalization ?

Benifits and Limitations of Query String ?

What is a Query String ?

Benifits and Limitations of cookie ?

What is a cookie ?

Cookie is a piece of information stored in the client computer/Browser which is limited to 4k in size.

Advatanges:-
  1.  very simple to implement
  2. Browser automatically arranges cookies stored for multiple sites
Disadvantages:-
  1. It stores cookie data in simple text format,so its not secure.
  2. cookie size limited to 4 kb
  3. No. of cookies stored by browser are limited to 20.some allow 300,when a new cookie comes old one will be discarded,


There are 2 types of cookies
  • Non-persistent(Temporary) cookies
  • Persistent(Permanent) cookies

What is Caching ?

What is View State ?

View State is a technique used by asp.net webpage to persist changes to state of a webform between postbacks.

View state of page is by default stored in hidden form field named _viewstate.

ADVANTAGES:- 
  • Automatic retention of page and control state
  • server resources not required.(View state can also be stored in server side.)
  • The values in view state are compressed and hashed
DISADVANTAGES:-
  • view state increases the page size since it is stored in the page itself.
  • Although view state stores data in hashed format they can be tampered.

06/07/2011

What is the advantage of SET NOCOUNT ON ?

  • Use Nocount at the begining of all your Stored procedures,Functions and Triggers
In case of regular T-sql statements(Insert,Update,Delete,Select) execution, we observe a message like some 20(rows) affected in the result window.This is actually a message database return internally to the client.This costs our application in terms of performance because information is sent back to us(client).

This intensifies when we have many operations(Insert,Update,Delete) in a stored procedure.That means each operation returns internal message within the stored procedure execution cycle.

Difference between Serialization & DE-Serialization ?


What is Serialization ?


Difference between ADO & ADO.Net ?


Difference between Data Reader & Data Set ?


Data Set ?


Data Adapter


Data Reader


LIKE Statement ?


Explain Drop Query ?


TRIGGERS ?


What is a View ?


Primary Key Vs Unique Key ?


Primary Key Vs Foreign Key ?


Inheritance


Abstraction


Polymorphism

OverLoading and OverRiding are both examples of Polymorphism.

  • OverRiding is Dynamic Polymorphism(executed at runtime)
  • OverLoading is Static Polymorphism(executed at compile time)
OVERRIDING --  for eg. Consider class A containing  method abc and class B inheritng class A can override method abc to give a different functionality.

OVERLOADING --  Its a mechanism in which we can have 2 or more methods with same name.Thinking how,its possible using different parameter datatypes or different number of parameters or different order of parameters.


Encapsulation


Difference between Webservice & WCF ?


Windows Communication Foundtion(WCF) ?


Which Attrbute is used Inorder to make a method as a WebService ?


UDDI , DISCO , WSDL ?


File Extension of Web Service ?


What is a WebService ?


What is .Net Remoting ?


What is Application Domain ?


What is a Foreign Key ?


What is a Primary Key ?


Difference between Delete & Truncate Query ?


Explain about Joins in Sql Server ?


What is Connection Pooling ?


Finalize() & Dispose ()


Difference between Constructor & Method ?


Method Overriding ?


Method Overloading ?


What is Operator Overloading ?


Difference between Delegate & Event ?


Do Events have Return Types & Access Modifiers ?


What is an Event?


What is a Delegate ?


Abstract class or Interface which is better ?


Difference between Abstract class & Interface ?


What is an INTERFACE ?


What is an ABSTRACT CLASS ?


STATIC Keyword ?


Access Modifiers ?


Object oriented programming ?


Value types & Reference types


3-Tier Architecture.....


What is a Strong Name?


MANIFEST & METADATA


Global Assembly Cache(GAC)


Difference between Namespace & Assembly


what is an Assembly ?


Difference between Managed code & Unmanaged Code


JIT(Just-In time Compiler)


CLR(Common Language Runtime) ?


Difference between framework versions 1.0,2.0,3.0,3.5 & 4.0 ?


What is .NET FRAMEWORK ?