Tuesday, September 23, 2008
Sansa m250: How to see it as a drive on XP
Menu, Settings, USB, choose the one that is not Autodetect ☺
Tuesday, September 16, 2008
SharePoint: Output caching not retrieving pages from cache
Symptom:
for subsequent requests, you see the date in the output page (right click IE page, View Source, etc) updated (it should remain constant for the period of time page in cache is not invalidated):
>>> Rendered using cache profile:Public Internet (Purely Anonymous) at: 2008-09-16T12:59:31
Solution:
This issue may happen for requests that include query strings, like '?var=val'.
Go to http://your%20server/cache%20profiles/allitems.aspx, and set 'Vary by Query String Parameters' to the value of the query param (in the example above, 'var') for the appropriate cache profiles.
for subsequent requests, you see the date in the output page (right click IE page, View Source, etc) updated (it should remain constant for the period of time page in cache is not invalidated):
>>> Rendered using cache profile:Public Internet (Purely Anonymous) at: 2008-09-16T12:59:31
Solution:
This issue may happen for requests that include query strings, like '?var=val'.
Go to http://your%20server/cache%20profiles/allitems.aspx, and set 'Vary by Query String Parameters' to the value of the query param (in the example above, 'var') for the appropriate cache profiles.
Thursday, September 11, 2008
SharePoint: Root folder element not returned through SPList.GetItems(SPQuery)
Problem: a query like this
on a list like with one element like
Folder, MyField='ABC'
was not returning the element.
Solution:
See here why ☺
SPQuery q = new SPQuery();
q.Query = "<Where><Eq><FieldRef Name='MyField'/><Value Type='Text'>ABC</Value></Eq></Where>";
q.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection c = l.GetItems(q);
Console.WriteLine(c.Count);
on a list like with one element like
Folder, MyField='ABC'
was not returning the element.
Solution:
q.ViewAttributes = "Scope=\"RecursiveAll\"";
See here why ☺
Subscribe to:
Posts (Atom)