Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur

16 Ocak 2010 Cumartesi

Güzel Notlar

Referans: forum.asp.net

Hello,

web service can access raw Request via HttpContext.Current.Request.xxx but keep in mind that basically a web service (has a web method which) is abstraction over the HTTP layer, when basically what the method needs is in the parameters the web method expects (if it's about parameters here). It should have no need to access raw Request directly in normal cases (you might have an exception that here, of course)
Thanks,

Teemu Keiski
Finland, EU


Referans: www.velocityreviews.com
Q:
Default System.Web.HttpException: Cannot compute Count for a data source t

When i try to do paging in Datagrid why do i get the error:-
System.Web.HttpException: Cannot compute Count for a data source that does
not implement ICollection.?

A:
Hi Patrick:

The underlying DataSource has to support the ICollection interface in
order
for the grid to perform automatic paging. ICollection requires a
class to implement a Count property.
ArrayList and DataView both
support the interface, so you could use them as DataSources.

Other classes only support the IEnumerable interface. This allows them
to be used as a DataSource but not as a paged data source.
SqlDataReader would be an example of such a class.

Making sense?

--
Scott
http://www.OdeToCode.com/blogs/scott/

Hiç yorum yok: