DNU
DNU
DNU
ans. server side code will execute at server (where the website is hosted) end, & all the business
logic will execute at server end where as client side code will execute at client side (usually
written in javascript, vbscript, jscript) at browser end.
q4. which property of a validation control is used to associate it with a server control on
that page?
ans. controltovalidate property.
q6. which method is invoked on the dataadapter control to load the generated dataset with
data?
ans. fill() method.
q8. what property within the asp:gridview control is changed to bind columns manually?
ans. autogenerated columns is set to false
q9. which method is used to redirect the user to another page without performing a round
trip to the client?
ans. server.transfer method.
q10. how do we use different versions of private assemblies in same application without re-
build?
ans.inside the assemblyinfo.cs or assemblyinfo.vb file, we need to specify assembly version.
assembly: assemblyversion
q16. when do we use a dom parser and when do we use a sax parser?
ans. the dom approach is useful for small documents in which the program needs to process a
large portion of the document whereas the sax approach is useful for large documents in which
the program only needs to process a small portion of the document.
q17. will the finally block be executed if an exception has not occurred?
ans.yes it will execute.
q27. what are the different types of assemblies and what is their use?
ans. private, public(also called shared) and satellite assemblies.
q36. which control in asp.net is used to display data from an xml file and then displayed
using xslt?
ans. use the asp:xml control and set its documentsource property for associating an xml file, and
set its transformsource property to set the xml control's xsl file for the xslt transformation.
q37. can we run asp.net 1.1 application and asp.net 2.0 application on the same computer?
ans. yes, though changes in the iis in the properties for the site have to be made during
deployment of each.
q68. what is the access modifier of a member function of in an interface created in .net?
ans. it is always public, we cant use any other modifier other than the public modifier for the
member functions of an interface.
q76. is there a way to suppress the finalize process inside the garbage collector forcibly in
.net?
ans. use the gc.suppressfinalize() method.
q78. is it possible to have have different access modifiers on the get and set methods of a
property in .net?
ans. no we can not have different modifiers of a common property, which means that if the
access modifier of a property's get method is protected, and it must be protected for the set
method as well.
q79. in .net, is it possible for two catch blocks to be executed in one go?
ans. this is not possible because once the correct catch block is executed then the code flow goes
to the finally block.