Is .Net platform independent ?
.net framework is partially dependent and partially independent language. This is because the .net applications works on windows OS and also Linux OS (Of course with help of framework called MONO fram...
Because JVM supports all operating systems so Java is pure platform independent.
How many types of assemblies are there , wat are they?
public
private
protected
In the Microsoft .NET framework, an assembly is is used by the .NET CLR (Common Language Runtime)as a partially compiled code library for use in deployment, versioning and security. In the Microsoft W...
How can retrieve the data from database? What is cell in dot frameworks?
FOR CONNECT
1.establish the connection between the database
2.send the request(execute the command)
3.get the data form data base
4.close connection
Copy/Paste the code and study it. For me it works."c# using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Data; namespace...
When we say that gc works on "heap" memory then how "stack" memory gets freed or deallocated? Can someone tell me the algorithm used by gc to free the memory?
Garbage collection removes the objects from heap after certain time.
.Net Frameworks -Memory Management Garbage Collector which manages allocation and release of memory from application.Now developers no need to worry about memory allocated for each object which is cre...
What is managed code and managed data?
Managed code is code that is written to target the services of the common language runtime. In order to target these services, the code must provide a minimum level of information (metadata) to the runtime. All c#, visual basic .Net, and jscript .Net code is managed by default. Visual studio .Net...
The code which targets clr while execution is called as managed code and the code which takes operating system help while execution is called as unmanaged code
The code which is under the control of CLR is call managed code , and the code which is not under the control of CLR is called unmanaged code.
Can we run dot.Net in UNIX plateform
there in no clr for unix to run......net became partially platform independent for this reason only
Yes you can, however you will need to use a virtual machine to translate the code between the two platforms. Essentially while this may take a few extra steps, it is very flexible in converting .net to a variety of platforms, including linux, unix, Mac OS X, etc.
What is "common type system" (cts)?
cts provided common data type for all the languages ...like system.int 16 and system .int 32.....
CTS defines all basic types that every language must follow the dotnet framework
Example:
In VB.net declare integer as "Dim i as integer"
In C#.net declare integer as "integer i"
Why is catch (exception) almost always a bad idea?
in try block we write the code of error occurring coding..
To handle this error, program needs an handler to this error., So, we can handle this by using Catch handler
While executing the program the program may contain error and it will catch the error of your program.
What is ADO .Net? Define the data providers and classes of ADO.Net and its purpose with example?
ADO.Net: Activex data obejct. By using ADO.NET data can be retrieved from one data source and saved in another. ADO.NET is a part of .NET framework architecture. A DATA PROVIDER is used for connect...
ADO.Net: Activex data obejct. The most important section in ADO.NET architecture is "Data Provider". Data Provider provides access to datasource (SQL SERVER, ACCESS, ORACLE). ...
What is a delegate, how many types of delegates are there
A delegate is a reference type variable , which holds the reference of a method. This reference can be changed at run time , as desired. Two types of delegates :- 1. single-cast delegate - can call o...
A delegate will allow us to specify what the function we'll be calling looks like without having to specify which function to call. The declaration for a delegate looks just like the declaration for a...
What is the base class of .Net?
Object class is the base class of dot net
System.object is the base class for VB.NET
How many classes can a single .Net dll contain?
A single DLL contains many classes
Many
Explain the differences between server-side and client-side code?
Difference between client side and server side. Server side Server side script are processed at server after server get request for a PHP document. After request for an PHP document was sent, server i...
Server-side code: 1. Code is written in VB, C# or other compiled languages. 2. Code is executed by the server during a roundtrip in response to a user request or action. 3. The server executes se...
Differences between datagrid, datalist and repeater?
1. Datagrid has paging while datalist doesnt. 2. Datalist has a property called repeat. Direction = vertical/horizontal. (this is of great help in designing layouts). This is not there in datagrid. 3. A repeater is used when more intimate control over HTML generation is required. 4. When only...
Differences between Datagrid, Datalist and Repeater? 1. Datagrid has paging while Datalist doesnt. 2. Datalist has a property called repeat. Direction = vertical/horizontal. (This is of great help in...
Datagrid is most restrictive as regards to customization followed by DataList and finally Repeater is the most customizable.Datagrid has built in paging, sorting and editing capabilities which are not...
What is delayed signing? How can we do a delayed signing for a dll which has to be shared?
Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the d...
Delay signing is the process of adding strong name to the assembly at the later stage of development.Signing an assembly means adding a strong name to the assembly.As the strong name is added at the l...
What tag do you use to add a hyperlink column to the datagrid?
By specifying tag between tag , we add a hyperlink column to the data grid
ButtonColumn is used to add link to datagrid. & set the ButtonType to LinkButton
1.Right Click on your project in solution explorer
2.Select XMLfile in "add new itel list" and
3.Click on Add button
Now u will found a XML file in your project
XmlTextWriter textWriter=new XmlTextWriter("filename.xml"); //WriteStartDocument and WriteEndDocument methods open and close a document for writing textWriter.WriteStartDocument() /...
Explain how the page is executed in ASP.Net ?
Page Execution in asp.net life cycle is
1.PageInit()
2.Pageload()
3.Prerender()
4.Pageunload()
An ASP.Net page consists of, at a minimum, a single .aspx file and can contain other files associated also with the page. The .aspx file is called the content file as it has the visual content o...
What is com, dcom objects in dotnet
Can some please answer this question in detail and also how they are going to be useful indotnet
The dot net frameworks allow you to build serviced components that can use com+ services. These components of dot net framework runs in the manages execution environment of dot net framework that is s...
COM objects require installation on the machine from where it is being used and DCOM requires installation somewhere on the same network. Any COM object may participate in DCOM transactions. DCOM intr...
Line item dimension is a concept where the dimension precisely contains one characteristic.The line item dimension does not create a dimension table, instead the role of dimension table is taken by the characteristics of the SID table
.