What is web.config.? How many web.config files can be allowed to use in an application?

Wednesday, July 8, 2009


1.    
 

The Web.Config file is the configuration file for
asp.net web application or a web site. prefix="o" ?>



2.    
 

You can have as many Web.Config files as you want
, but there can be only one web.config file in a single folder.

What are asynchronous callbacks in .net?

It means that a call is made from a Main Program to a .net Class’s method and the program continues execution. When the callback is made ( means the method has finished its work and returns value) , the Main program handles it.

How to call a user controls method from its parent?

For example the name of your control be a SecureLoginControl and the solution be MyControls and the method you are going to call is SecuredAuthentication(), then the coding you need to do is ,

Control declaration:
Public MyControls.SecureLoginControl objSecureLoginControl ;

When calling:
boolean b;
b=objSecureLoginControl.SecuredAuthentication();

or you can call like this also,

((SecureLoginControl)Panel1.FindControl("objSecureLoginControl")).SecuredAuthentication();

What is Serialization ? What are the Types of Serialization and their differences?

Serialization:
It is the process of converting an object to a form suitable for either making it persistent or tranportable.
Deserialization is the reverse of this and it converts the object from the serialized state to its original state.

Types:
1. Binary
2. XML

Differences:













Sno Binary XML
1

It preserves type fidelity , which is useful for preserving


the state of the object between transportation and invocation.


It doesnt preserves type fidelity and hence state cant be


maintained.

2 As it is the open standard its widely used Not that much compared to
Binary.

What is assemblyInfo.cs file? Where can I find it? What is it for?

What
It consists of all build options for the project,including verison,company name,etc.
Where
It is located in the Properties folder.
Use
It is used to manage the build settings.

What is the name of the class used to read and get details of the files uploaded to asp.net?





System.Web.HttpPostedFile

What are the uses of Views?





1. Views are virtual tables (they dont store data physically) which gives a result
of data by joining tables. So you are not storing redundant data.


2. Views are used to produce reports from data


3. Views can be used to provide security to data by giving access only to views.



Blog Widget by LinkWithin