buy domain website and hosting


ASP.NET Questions For Interview Set-5

Languages and Programming

Qus: What is the difference between Application_start and Session_start?
Ans: Application_start gets fired when an application receive the very first request.
Session_start gets fired for each of the user session.

Qus: What is inheritance and when would you use inheritance?
Ans: The concept of child class inheriting the behavior of the parent is called inheritance.
If there are many classes in an application that have some part of their behavior common among all , inheritance would be used.

Qus: What is the order of events in a web form?
Ans
1. Init
2. Load
3. Cached post back events
4. Prerender
5. Unload

Qus: Can you edit Data in repeater control?
Ans: No

Qus: Which template you must provide to display data in a repeater control?
Ans: Item Template

Qus: How can you provide an alternating color scheme in a Data Grid?
Ans:Use ALTERNATING ITEM STYLE and ITEM STYLE, attributes or Templates

Qus: Is it possible to bind a data to Text box?
Ans:Yes

Qus: What method I should call to bind data to control?
Ans:Bind Data ()

Qus: How can I kill a user session?
Ans:Call session. abandon.

Qus: Which is the common property among all the validation controls?
Ans:Control To Validate

Qus: How do you bind a data grid column manually?
Ans:Use BoundColumn tag.

Qus: Web services can only be written in .NET, true or false?
Ans:False

Qus: What does WSDL, UDDI stands for?
Ans: Web Service Description Language.
Universal Description Discovery and Integration

Qus: How can you make a property read only? (C#)
Ans:Use key word Read Only

Qus: Which validation control is used to match values in two controls?
Ans:Compare Validation control.

Qus:To test a Web Service I must create either web application or windows application. True or false?
Ans:False

Qus: How many classes can a single .NET assembly contains?
Ans: Any number

Qus: What are the data types available in JavaScript?
Ans:Object is the only data type available.

Qus: Is it possible to share session information among ASP and ASPX page?
Ans:No, it is not possible as both of these are running under different processes.

Qus: What are the caching techniques available?
Ans: Page cahahing,Fragment Caching And Data Caching.

Qus: What are the different types of authentication modes available?

Ans:  Window,Form,Passport, None.

Qus: Explain the steps involved to populate dataset with data?
Ans:Open connection
Initialize Adapter passing SQL and connection as parameter
Initialize Dataset
Call Fill method of the adapter passes dataset as the parameter
Close connection.

Qus: Can I have data from two different sources into a single dataset?
Ans:Yes, it is possible.

Qus: Is it possible to have tables in the dataset that are not bound to any data source?
Ans:Yes, we can create table object in code and add it to the dataset.

Qus: Why do you deploy an assembly into GAC?
Ans: To allow other application to access the shared assembly.

Qus: How do you uninstall assembly from GAC?
Ans: Use Gacutil.exe with U switch.

Qus: What does Regasm do?
Ans: The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered.

Qus: What is the difference between Execute Scalar and Execute None Query?
Ans: Execute Scalar returns the value in the first row first column of a query result set.
Execute Non Query return number of rows affected.

Bookmark and Share




Gallery

Related Topics

Comments



Submit Reviews:


(Enter the characters seen on the image below.)



Promotional Ads

Advertisement

Packers and Movers in Chandigarh
Plot No 636, Near HP Gas Agency, Dariya, Chandigarh - 160101
Plot No 636, Near HP Gas Agency, Dariya, Chandigarh - 160101
Delhi

Maharaja Agrasen Hospital Super Speciality Hospital in Dwarka
H3VH+C7Q, Pocket 4, Sector 1 Dwarka, New Delhi 110075
Delhi

GET DIPLOMA IN DRESS DESIGNING| CONTACT-9810450615
A-100 3rd Floor, Mohan Garden, Nawada, opposite metro pillar no.747, near Uttam Nagar.
Delhi

PRIMARY TEACHER TRAINING(PTT)| SIPVS UTTAM NAGAR
A-100 3rd Floor, Mohan Garden, Nawada, opposite metro pillar no.747, near Uttam Nagar.
Delhi

Aplonis Healthcare
SCF-461, 1st floor
Motor Market, Sector-13,
Delhi

Jaggery Powder
431, Vijaya Lodge Building, Rangai Gowder Street, Town Hall, Coimbatore-641001, Tamil Nadu, India, Town Hall, Coimbatore-641001, Tamil Nadu, India
Coimbatore
Delhi

Self Drilling Anchor Bolt Systems
F-418 Office Block City Centre Mall Siliguri West Bengal - 734010
F-418 Office Block City Centre Mall Siliguri West Bengal - 734010
Delhi

Assured low-cost full body checkup at your home.
Mayur Colony, Kothrud
Pune
Delhi

HP Laptop Service Center in Dilshad Garden
197 B, Pocket F, Dilshad Gardenn Delhi,
Delhi

Interior A to Z
284/4, Chhatarpur Extension, Chhatarpur, New Delhi, Delhi 110074
Delhi
Delhi