Professional Documents
Culture Documents
Dot Net Interview Q & A 2
Dot Net Interview Q & A 2
25. ment DataGrid in .NET? How would you make a combo-box appear in one
column of a DataGrid? What are the ways to show data grid inside a data grid
for a master details type of tables?
26. If we write any code for DataGrid methods, what is the access specifier used
for that methods in the code behind file and why?
27. What is Application Domain? Application domains provide a unit of isolation
for the common language runtime. They are created and run inside a process.
Application domains are usually created by a runtime host, which is an
application responsible for loading the runtime into a process and executing
user code within an application domain. The runtime host creates a process
and a default application domain, and runs managed code inside it. Runtime
hosts include ASP.NET, Microsoft Internet Explorer, and the Windows shell.
28. What is serialization in .NET? What are the ways to control serialization?
Serialization can be defined as the process of storing the state of an object to
a storage medium. During this process, the public and private fields of the
object and the name of the class, including the assembly containing the class,
are converted to a stream of bytes, which is then written to a data stream.
When the object is subsequently deserialized, an exact clone of the original
object is created.
o Binary serialization preserves type fidelity, which is useful for
preserving the state of an object between different invocations of an
application. For example, you can share an object between different
applications by serializing it to the clipboard. You can serialize an
object to a stream, disk, memory, over the network, and so forth.
Remoting uses serialization to pass objects “by value” from one
computer or application domain to another.
o XML serialization serializes only public properties and fields and does
not preserve type fidelity. This is useful when you want to provide or
consume data without restricting the application that uses the data.
Because XML is an open standard, it is an attractive choice for sharing
data across the Web. SOAP is an open standard, which makes it an
attractive choice.
29. What are the different authentication modes in the .NET environment?
30. <authentication mode="Windows|Forms|Passport|None">
31. <forms name="name” loginUrl="url”
32. protection="All|None|Encryption|Validation”
33. timeout="30″ path="/” > requireSSL=“true|false”
34. slidingExpiration=“true|false”><
35. credentials passwordFormat="Clear|SHA1|MD5″><
36. user name="username” password="password"/>
37. </credentials> </forms>
38. <passport redirectUrl="internal"/>
</authentication>
/li>
1.
2. < . { System.Attribute : MyAttribute public attribute.(>
3. < { public this.myvalue="myvalue;" myvalue) MyAttribute(bool
constructors(>
4. //Declaring properties
5. public bool MyProperty
6. {
7. get {return this.myvalue;}
8. set {this.myvalue = value;}
9. }
10.
(/DECLARING>(/DECLARING>(/APPLYING> (/WHAT>
62. How does you handle this COM components developed in other programming
languages in .NET?
63. How will you register com+ services?
64. What is use of ContextUtil class? ContextUtil is the preferred class to use for
obtaining COM+ context information.
65. What is the new three features of COM+ services, which are not there in COM
(MTS)
66. Is the COM architecture same as .Net architecture? What is the difference
between them (if at all there is)?
For more questions and answers, visit Santhosh Thomas’ site, as he constantly
updates these questions with answers.