WCF error mean: “Custom tool warning: Cannot import wsdl:portType”

When you add a service reference, there are two ways the types that are used by the service can be handled: The types are stored in a dll, and that dll is referenced from both the client and the server application. The types are not in a dll referenced by the client. In that case […]

Read More

Ispostback and not Ispostback

Page.Ispostback occurs when the page is posted back to the server for processing. Like when you click on a button and handle the event in button_click event in the code behind file of that page then it is ispostback. !ispostback occurs when the page is loaded for the first time .Let’s think you type an […]

Read More

Features of OOP

The following are the four basic features of OOP: Abstraction – Refers to the process of exposing only the relevant and essential data to the users without showing unnecessary information. Polymorphism – Allows you to use an entity in multiple forms. Encapsulation – Prevents the data from unwanted access by binding of code and data […]

Read More

Autocomplete with XML

Here I will explain how to use Autocomplete with xml data. Basically Autocomplete provides a list of suggestions while you type into the field. It prevents the user from having to enter an entire word or a set of words. In below example i will show how to bind xml data in autocomplete textbox. CS […]

Read More

Differentaite between Hashtable and Dictionary

Hashtable and Dictionary are collection of data structures to hold data as key-value pairs. Dictionary is generic type, hash table is not a generic type. The Hashtable is a weakly typed data structure, so you can add keys and values of any Object Type to the Hashtable. The Dictionary class is a strongly types < […]

Read More

Why do you want to leave your current job?

“I want to find a company with more opportunities. My previous company was very small and didn’t have opportunities for growth. After learning about the work environment here, I felt this is exactly the type of place I want to work.” “My current company is very large and it’s difficult to do different tasks. We […]

Read More

Find control in DataList

protected void dlCategory_ItemDataBound(object sender, DataListItemEventArgs e) { Label Label1 = e.Item.FindControl(“Label1”) as Label; if (LblCat != null) { string id = ((System.Data.DataRowView)e.Item.DataItem).Row[“ProductCategory_Id”].ToString(); if (Request.QueryString[“ProductCategory_Id”] == id) { Label1.ForeColor = System.Drawing.Color.Red; } } }

Read More