What are WCF Service End points?

For WCF services to be consumed, than it must be exposed; Clients need information about service to communicate with it. This is where service endpoints play their role.

WCF service endpoint has three basic elements i.e. Address, Binding and Contract.

  • Address: It defines “WHERE”. Address is the URL that identifies the location of the service.
  • Binding: It defines “HOW”. Binding defines how the service can be accessed.
  • Contract: It defines “WHAT”. Contract identifies what is exposed by the service.

What is the Difference between #Bind and #Eval ?

Eval is read only. Bind is 2 way binding(updatable)

What is the difference between Eval and Bind methods?

Both Eval and Bind apply to the templated controls like the GridView, FormsView.

But there are certain differences

Eval method:

  • It supports only one way binding. It means that we can only read data from the column using Eval method.
  • It does not need the ID of a particular control

example:

<table>
<tr>
<td><%#Eval("productname")%> </td>
</tr>
</table>

is OK.

  • It applies to controls like the GridView, DataList, Repeater, ListView, FormsView, DetailsView.

Bind method:

  • It supports two way binding. It means that we can read data and modify data using the Bind method.
  • It always needs the ID of a particular control

example:

<table>
<tr>
<td><%#Bind("productname")%> </td>
</tr>
</table>

is WRONG
we have to take some UI control like Label aand specify the Binding in the
Text property.

  • It applies to controls like the GridView, FormsView, DetailsView.