Skip to main content

Posts

Showing posts from February, 2015

What are the different types of applications/programs can be developed using .Net Technology in any of the .Net compatible programming language such as Visual C#/Visual Basic? Must Read Finally Described in Brief By Rakesh Singh:

• Console Application: A console application is an application that runs in a console window same as a C and C++ program. It doesn't have any graphical user interface. To work with console applications you have to use a class called Console that is available within the namespace System, which is the root namespace. • Windows Forms Application: A Windows Forms application is an event-driven application supported by Microsoft's .NET Framework. Windows Forms (WinForms) is the name given to the graphical application programming interface (API) included as a part of Microsoft .NET Framework, providing access to native Microsoft Windows interface elements by wrapping the extant Windows API in managed code. Just like Abstract Window Toolkit (AWT), the equivalent Java API, Windows Forms was an early and easy way to provide graphical user interface components to the .NET Framework. Windows Forms is built on the extant Windows API and some controls merely wrap underlying Windows co

Few reasons for Why .NET is better than JAVA

1. Compared to JAVA, the .NET languages are richer. These can have object oriented feature that are absent in JAVA like properties,delegates,generics. 2. We notice JAVA GUI programs were not so efficeient on the host operating system. When we use the OS's theme we can still notice that the JAVA widgets look out of place. 3. Here, .NET in the form of Mono has brought a great revolution on the linux desktop in form of varied applications like beagle, tomboy, diva, iFolder, banshee e.t.c. But JAVA has failed to do it. 4.There are more programs which would have been difficult to develop with JAVA had been developed on basis of .NET compilers like C# and VB.NET  and also 3D gaming engines e.t.c. 5. CLI was an open standard maintained with an independent standards organization ,whereas JAVA is still governed by SUN microsystems. 6. We could code on the .NET platform using JAVA but you could not code on JAVA platform using any of the .NET languages. Apart from this, Bill

Are You Confused In Choosing .NET Or JAVA For A Better Career ?

Hai Friends, there will be a question for every individual to choose whether .NET or JAVA for a better career. I probably suggest you to choose .NET why because , let me explain... We very well know that Microsoft .NET is the Microsoft's new Internet strategy. And also it is not just a language but it is a framework which supports many languages. .NET is originally called NGWS( Next Generation Windows Services ). However, one thing we have to discover with technology was that it's not always about love but it's much about power. Compared to JAVA technology with CLI also commonly known as .NET, we can observe that JAVA is less powerful in few areas unlike .NET. Are You Confused In Choosing .NET or JAVA For Better Career ? Let me demonstrate few characterstics about .NET. About .NET .NET was a framework for universal services. .NET was Microsoft's latest Internet and Web strategy . .NET was a new Internet and Web based infrastructure . .NET was not a new operating

C#.NET INTERVIEW QUESTIONS

1)what is CLR? CLR is the virtual machine component of Microsoft's .NET framework which is used for memory management and debugging. 2)what is CTS? CTS is common type system which is used to provide common datatypes for all .net supportable languages. 3)what is Nullable datatypes? Nullable datatypes are used to assign a null value for integer int? a = null; Console.WriteLine(a); Nullable datatypes are introduced from .net 2.0 and above versions 4)what is the default datatype to store integer value? int 5)what is the default datatype to store decimal value? double 6)what is the Difference between ToString() and Convert.ToString()? ToString() doesnot handle null values Convert.ToString()will handle null values. string s = null; // string s1 = s.ToString(); string s2 = Convert.ToString(s); Console.WriteLine(s2); 7)what is the Difference between int.Parse() and Convert.ToInt32()? int.Parse() is used to convert string to int Convert.ToInt32() is used to convert any datat

Difference between String and StringBuilder class in Asp.Net C# ?

String and StringBuilder class are used to handle the strings but there are subtle differences between these two. Let's understand the difference between String and StringBuilder using suitable example: 1. Performance of StringBuilder is high as compared to String Consider the following concatenation example: String str= ""; str += "Welcome "; str += "to "; str += " kunalsaurav.com "; Output string will be Welcome to  kunalsaurav.com Let's do the same concatenation operation using StringBuilder class StringBuilder sb = new StringBuilder(""); sb.Append("Welcome"); sb.Append("to "); sb.Append(" kunalsaurav332.com "); String str = sb.ToString(); Output string will be Welcome to  kunalsaurav332.com Have you noticed the result using String and StringBuilder is same; then what is the difference between these two? The difference is in their performance. Whenever we concatenate new strin

15 main Difference between DataSet and DataReader in asp.net ?

Asp.net  developer uses DataSet and DataReader to fetch data from the data source while developing  asp.net  application. But most of them don’t know exactly what are the main difference between DataSet and DataReader and what to use and when to use out of these two. Both DataSet and DataReader are widely used in  asp.net  applications for the same purpose i.e. to get/fetch the data from the database. But one has to know the best practices in developing fast, reliable and scalable application. So I have tried to list some main differences between the DataSet and DataReader which are as follows: DataSet Vs DataReader 1. DataReader is used to retrieve read-only (cannot update/manipulate data back to datasource) and forward-only (cannot read backward/random) data from a database. It provides the ability to expose the data from database while DataSet is a collection of in-memory tables. 2. DataReader fetches the records from database and stores in the network buffer and gives w

Main differences between Stored procedures and Functions in Sql Server ?

Stored Procedure: A stored procedure is a pre-compiled group of Transact-SQL statements .We can say a stored procedure is a prepared SQL code that we save so that we can reuse the code over and over again. If a repetitive T-SQL task has to be executed within an application, then the best way for it is to create stored procedure. It is always recommended to create Stored Procedure instead of writing Inline queries so that we can just call the Stored Procedures whenever required instead of writing Inline queries again and again each time. You can also pass parameters to the stored procedure, so depending on what the need is the stored procedure can act accordingly based on the parameter values that were passed to it. Function: Function in Sql Server is a Transact-SQL or common language runtime (CLR) routine that takes parameters, performs an action, and returns the result of that action as a value. The return value can either be a scalar (single) value or a table. Difference be

Difference between Response.Redirect and Server.Transfer in asp.net?

Response.Redirect vs Server.Transfer 1. ‘Response. Redirect’ sends message to the browser saying it to move to some different page, while ‘Server. Transfer’ does not send any message to the browser but rather it redirects the user directly from the server itself. So in case of ‘Server. Transfer’ there is no round trip while Response. Redirect has a round trip and hence puts extra load on server. 2. Using ‘Server. Transfer’ we cannot redirect to external websites or website pages. E.g. if your website is  www.kunalsaurav.com  then you cannot use ‘Server. Transfer’ to move to  www.google.com  but yes, you can move to internal pages  www.kunalsaurav.com/asp.net , i.e. within the websites. Cross server redirection is possible only by using ‘Response.Redirect’ i.e. it allows redirection to internal as well as external websites and website pages. 3. With ‘Response. Redirect’ we can redirect the user to the both type of pages .html or .aspx e.g. Response. Redirect (“OtherPage.html”)