datatable grouping

Ex : var masterGroups = (from row in dtRetCls.AsEnumerable()
group row by row["GroupDescription"] into groupedTable
select new
{
x = groupedTable.Key
}
).ToList();

Select data rows

DataRow[] drx = dtRetCls.Select("GroupDescription= '" + item.x + "' ");

Read Users' Comments (0)

Computed Column Specification

Ex :

(((isnull([AuthorizedQtyU1],isnull([InvoiceQtyU1],(0)))-isnull([ReceivedQtyU1],(0)))-isnull([DamagedQtyU1],(0)))-isnull([MissingQtyU1],(0)))

Is Persisted = no

(datediff(minute,[StartTime],[EndTime]))

Is Persisted = no

Read Users' Comments (0)

filter generic list items

BatchExeProduct batchExeProductObject = batchExeProducts.Find(delegate(BatchExeProduct ep) {return ep.ExecutiveCode == exeCode; });

Read Users' Comments (0)

Remove cache in asp.net page

So far I've tried the page directive:

@ OutputCache Duration="1" Location="None"

The Meta tags:

<meta http-equiv="Expires" CONTENT="0">

<meta http-equiv="Cache-Control" CONTENT="no-cache">

<meta http-equiv="Pragma" CONTENT="no-cache">

And the code:

Response.ExpiresAbsolute = DateTime.Now

Response.Expires = -1441

Response.CacheControl = "no-cache"

Response.AddHeader("Pragma", "no-cache")

Response.AddHeader("Pragma", "no-store")

Response.AddHeader("cache-control", "no-cache")

Response.Cache.SetCacheability(HttpCacheability.NoCache)

Response.Cache.SetNoServerCaching()

Read Users' Comments (0)

filter sql

WHERE convert (datetime, convert (varchar, datecol, 101), 101) = @yourdate

Read Users' Comments (0)