Monthly Archives: April 2011

.NET/ASP.NET Interview Question – Define WebService and how it differ from Remoting?

Answer: WebServices is a cross platform where we can invoke object which are lying on different server or different georphical  location. Both WebService and Remoting are used for same Purpose but the difference in Remoting is that both the server … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, .Net Interview Questions, Asp.Net Interview Questions, Csharp interview questions, programming interview questions, Remoting, Webservices | Tagged , , , , , , , | Leave a comment

.NET/ASP.NET Interview Question – Explain remoting?

Answer: Remoting is a .NET technology where we can invoke objects which are lying on different server or different geographical location. Below is the diagram shows the concept of Remoting. In the above diagram, a client which is located in … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, .Net Interview Questions, Asp.Net Interview Questions, Csharp interview questions, programming interview questions, Remoting | Tagged , , , , , , , | Leave a comment

.NET/ASP.NET Interview Question – Different ways to Validate a Controls in ASP.NET page using JavaScript?

  Answer: Let’s see an Simple example to understand.Assuming that we have a Textbox and Button on the ASP.NET page like below. <asp:TextBox ID=”txtName” runat=”server”></asp:TextBox> <asp:Button ID=”btnSubmit” runat=”server” Text=”Submit” OnClientClick=”return validate()” /> Now, Add the below code snippet on the … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, .Net Interview Questions, Asp.Net Interview Questions, ASP.NET training, Csharp interview questions, Java script, programming interview questions | Tagged , , , , , , | Leave a comment

WCF Interview Question – How do we do security in WCF?

Answer:  In WCF there are two types of Security, transport level security and message level security. Transport Security: Transport level security happens at the channel level. Transport level security is the easiest to implement as it happens at the communication … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, Csharp interview questions, programming interview questions, security, WCF | Tagged , , , , , , | Leave a comment

WCF Interview Question -Differentiate between Basic httpbinding and WShttpbinding?

Answer: Basic Httpbinding:In httpbinding Data is sent as a plain text.In other words,there is no security provided for the message when the client calls happen. This is aimed for clients who do not have .NET 3.0 installed and it supports … Continue reading

Posted in .NET and C# training, .Net Interview Questions, Csharp interview questions, httpbinding, programming interview questions, WCF, WShttpbinding | Tagged , , , , , , | 1 Comment

C#/.NET interview Question – What is the difference between Array and ArrayList?

Answer: Array ArrayList They are fixed length. They are resizable and variable length. They are compiled strong type collection. They are flexible and can accommodate any data types. Because arrays are of fixed size and strong type collection performance is … Continue reading

Posted in .NET and C# training, .Net Interview Questions, Array, Arraylist, C# interview questions, Csharp interview questions, programming interview questions | Tagged , , , , , , | 1 Comment

C#/.NET interview Question – Types of collections in .NET

Answer: Collection: – Collections are basically group of records which can be treated as a one logical unit..NET Collections are divided in to four important categories as follows. Indexed based. Key Value Pair. Prioritized Collection. Specialized Collection. Let’s begin with … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, programming interview questions, Types of collections in .NET | Tagged , , , , , | Leave a comment

WCF Interview Question – What is WCF?

Answer: WCF is a unification technology, which unites the following technologies:- 1. NET remoting 2. MSMQ 3. Web services 4. COM+. Below figure depicts WCF fundamentals pictorially. Regards, Please click here to see more WCF interview questions

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, programming interview questions, WCF, WCF interview questions | Tagged , , , , , | Leave a comment

WCF Interview Question – What are Service Contract,Operation Contract and Data Contract?

Answer:  Service Contract:-Service Contract is used to define the service name. Operation Contract:-Operation contract defines the methods in the services. Data Contract:-Data contract defines custom data types in the services. Please click here to see more WCF interview questions Regards, Visit … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, programming interview questions, WCF, WCF interview questions | Tagged , , , , , , | Leave a comment

WCF Interview Question – How to achieve Self-Hosting in WCF?

Answer:  The following steps are followed to do Self-hosting. Step1:    //Create a URI to serve as the base address // Address as well binding Uri httpUrl = new Uri(“http://localhost:8010/MyService/HelloWorld&#8221;); Step2: //Create ServiceHost ServiceHost host = new ServiceHost(typeof(ClassLibrary1.HelloWorldService),httpUrl); Step3: //Add a … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, How to achieve Self-Hosting in WCF, programming interview questions, WCF, WCF interview questions | Tagged , , , , , , , | Leave a comment