Following are some Interview Questions and Answers set of C# 2.0. What is the difference between ToString() and Convert.ToString()? Convert.ToString() can handle null values This code will execute. ToString() cannot handle null This code will throw error Object reference not set to an instance of an object As far as performance is concerned ToString() is better than Convert.ToString() If you are sure that your object is not null then it …
Interview Questions Answers Tutorials
What is the difference between razor and webform view engine?
In Asp.net MVC, View engine holds the responsibility of rendering the view to the browser. MVC supports Razor Engine and Web Form by default. There are a lot of Third Party View engines available for use, We can go for them as well. Eg: Nhaml, Park, NDjango, SharpDOM etc. Lets see the difference between Razor and Web Form View engines. Razor view engine Webform view engine Razor view engine uses System.Web.Razor namespace Webform view engine uses System.Web.Mvc. WebformViewEngine …
ASP.NET Interview Questions and Answers SET – 3
Following are some basic Interview Questions and Answers set of ASP.NET. What is the control for which by default postback is enabled? Button How do you implement postback in textbox? By making AutoPostBack property of the textbox as true we can implement postback in textbox What is the difference between LinkButton and HyperLink in asp.net? LinkButton contains 2 extra events as compared to HyperLink i.e. Command and Click. So you …
ASP.NET Interview Questions and Answers SET – 2
Following are some basic Interview Questions and Answers set of ASP.NET. How can you display all validation messages in one control? We can display in one control using ValidationSummary control. How can you register a custom server control to a Web page? We can register a custom server control using @Register directive. What is the default timeout for a Cookie? 30 minutes How many web.config files can I have in …
ASP.NET Interview Questions and Answers SET – 1
Following are some basic Interview Questions and Answers set of ASP.NET. What is the difference between web.config and machine.config? Settings made is machine.config is applied to all the web applications on the server whereas settings made in web.config is applied to that particular web application. There can be only one machine.config file on the server. There can be more than one web.config file on the server depends on the number …
ADO.NET Interview Questions and Answers SET – 1
Following are some basic Interview Questions and Answers of ADO.NET. What is the difference between ExecuteQuery() and ExecuteNonQuery()? ExecuteQuery is used for select query whereas ExecuteNonQuery is used for insert, update and delete queries ExecuteQuery returns result set whereas ExecuteNonQuery returns integer value(number of rows affected) What is a dataset? Dataset is the in-memory cache of data. The DataSet contains a collection of one or more DataTable objects made up …
.Net Architecture Interview Questions and Answers SET – 1
Following are some basic Interview Questions and Answers of .Net Architecture. What is application domain? The only way used to isolate applications running on the same machine is by the means of process boundaries..NET framework 2.0 introduces a new boundary called the Application Domains.Application Domain is required so that applications do not affect one another.A single CLR operating system process can contain multiple application domains. What is the difference between …
Sort an Array Alphabetically in Javascript
To Sort an Array Alphabetically, we have a sort() method in JavaScript arrays that sorts the array items into an alphabetical order. The sort() method accepts an optional argument as a function that compares two elements of the array. Following is the syntax of the sort() method: If we leave the compare function, then the sort() method will sort the array based on the array values. Following are the rules …