May 16, 2007 by mauliksoni
.NET 2.0 Terms / Interview Questions
access control list (ACL) A term most commonly used to refer to a discretionary access control list (DACL), which is an authorization restriction mechanism that identifies the users and groups that are assigned or denied access permissions on an object.
Advanced Encryption Standard (AES) A synonym for Rijndael, which is a symmetric encryption algorithm that uses key sizes of 128 through 256 bits.
application domain A logical container that allows multiple assemblies to run within a single process, while preventing them from directly accessing another assembly’s memory.
application setting A custom setting that the application reads, writes, or both.
Continue Reading »
Posted in Interview Questions for .Net | 4 Comments »
May 1, 2007 by ripalmsoni
“The ability to define a class and create instances of classes is one of the most important capabilities of any Object Oriented Language”
Q: How will you define a CLASS ?
A: All classes in Visual Basic. NET are defined in a .VB file (as oppose to .CLS file in vb6), Also .VB file may contain one or more classes. The basic syntax of a class is as follows:
Class ClassName
End Class
Public|Protected|Friend|Protected Friend|Private Class Vehicle
End Class
Continue Reading »
Posted in Interview Questions for .Net | 6 Comments »
April 25, 2007 by ripalmsoni
Here is the solution of printing PDF file by giving printer name
Dim pathToExecutable As String = “AcroRd32.exe”
Dim sReport = “C:Test.PDF” ‘Complete name/path of PDF file
Dim SPrinter = “HP Officejet 5600 seriese” ‘Name Of printer
Dim starter As New ProcessStartInfo(pathToExecutable, “/t “ + sReport + ” “ + sPrinter + “”)
Continue Reading »
Posted in .NET | 42 Comments »
April 3, 2007 by ripalmsoni
1.What is the difference between Response.Write() and Response.Output.Write()?
Ans.Response.Output.Write() allows you to write formatted output.
2.What is the difference between Server.Transfer and Response.Redirect?
Ans.Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client’s browser.This provides a faster response with a little less overhead on the server.Server.Transfer does not update clients url historylist or current url.
Response.Redirect is used to redirect the user’s browser to another page or site.This performs a trip back to the client where client’s browser is redirected to the new page.The user’s browser history list is updated to reflect the new address.
3.Explain the difference between server-side code and client-side code.
Ans.Server-side code executes on the server.Client-side code executes on the client’s browser.
4.Describe the difference between inline code and code behind.
Ans.Inline code written along side the html in a page.Code-behind is code written in seprate file and refrenced by .aspx in page.
5.What methods are fired during page load?
Ans. Init() – when the page is instantiated
Load() – when the page is loaded into server memory
PreRender() – the brief moment before the page is displayed to the user as HTML
Unload() – when page finishes loading.
Continue Reading »
Posted in Interview Questions for .Net | 16 Comments »
March 29, 2007 by ripalmsoni
1. What is an assembly?
Ans. Assemblies are the smallest units of versioning and deployment in .Net application.Assemblies are also building blocks for programs such as Web Services,Windows Services,Service Components and .Net Remoting Applications.
Here are some general Concepts of an Assembly.
An Assembly is a logical unit of code
Assembly physically exist as DLLs or EXEs
One assembly can contain one or more files
The constituent files can include any file types like image files, text files etc. along with DLLs or EXEs
When you compile your source code by default the exe/dll generated is actually an assembly
Unless your code is bundled as assembly it can not be used in any other application
When you talk about version of a component you are actually talking about version of the assembly to which the component belongs.
Every assembly file contains information about itself. This information is called as Assembly Manifest.
For more information about an Assembly please visit http://msdn2.microsoft.com/en-us/library/hk5f40ct.aspx
2.What is Satellite assembly?
Ans. A .NET Framework assembly containing resources specific to a given language. Using satellite assemblies, you can place the resources for different languages in different assemblies, and the correct assembly is loaded into memory only if the user elects to view the application in that language.
3.What is MSIL?
Ans. Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library.It means .NET Compiler can generate code written using any supported languages and finally convert it to the machine code depending on the target machine.
4.What is CLR?
Ans. CLR is Common Language Runtime that provides multi-language execution environment for .NET.It executes the MSIL code to the native machine code.It helps us to use classes which is created in another .NET language.For eg. You can use a class created using vb in c#.
5.What is CTS?
Ans. CTS is the .NET Framework specification for defining, declaring, and managing types in .NET languages for the Common Language Runtime (CLR). All .NET components must comply with the CTS specification.
Continue Reading »
Posted in Interview Questions for .Net | 15 Comments »
March 16, 2007 by ripalmsoni
I found this question at many places that how to print pdf file in .net in which you have only the full path of that pdf file
here is you solution in vb.net
Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.Verb = “print”
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.FileName = sReport
Process.Start(psi)
Continue Reading »
Posted in .NET | 8 Comments »
March 16, 2007 by ripalmsoni
As a web developer we know that most of the time our application is having a login as well as the forget password kind of requirement.
Now, using visual studio 2005 it’s very easy to design a login page because the inbuilt login tab has been added into the toolbox of VS 2005 editor, which has different types of control related to login functional.

Fig 1.1: New tab for login
Continue Reading »
Posted in .NET | 12 Comments »