<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamic load where parameters for linqDatasource</title>
	<atom:link href="http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/</link>
	<description>Sharing Sitecore tips, tricks and techniques to build better solutions</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:14:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Brian Holmes</title>
		<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comment-13</link>
		<dc:creator>Brian Holmes</dc:creator>
		<pubDate>Thu, 12 May 2011 18:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3#comment-13</guid>
		<description>Hi.  This post has been very helpful in a search portion of a page I am working on (needs a dynamic search of 11 controls).  I have my search working so far (2 down...9 to go?!) but I have paging enabled (using it to load in a GridView control) and when you click on the Column Headers it goes to the default design time set of records (not good) rather than persisting my where and whereparameter properties I set in my code behind.  Anyone know how to persist these?  Is there simply a method on the LinqDataSource I need to call?...again great post!

- Brian</description>
		<content:encoded><![CDATA[<p>Hi.  This post has been very helpful in a search portion of a page I am working on (needs a dynamic search of 11 controls).  I have my search working so far (2 down&#8230;9 to go?!) but I have paging enabled (using it to load in a GridView control) and when you click on the Column Headers it goes to the default design time set of records (not good) rather than persisting my where and whereparameter properties I set in my code behind.  Anyone know how to persist these?  Is there simply a method on the LinqDataSource I need to call?&#8230;again great post!</p>
<p>- Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usman</title>
		<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comment-12</link>
		<dc:creator>Usman</dc:creator>
		<pubDate>Thu, 07 Apr 2011 20:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3#comment-12</guid>
		<description>Thanks for your post. Helped me get to a solution. Here&#039;s my post.
http://usman-suglatwala.blogspot.com/2011/04/generating-dynamic-querywhere-clause.html</description>
		<content:encoded><![CDATA[<p>Thanks for your post. Helped me get to a solution. Here&#8217;s my post.<br />
<a href="http://usman-suglatwala.blogspot.com/2011/04/generating-dynamic-querywhere-clause.html" rel="nofollow">http://usman-suglatwala.blogspot.com/2011/04/generating-dynamic-querywhere-clause.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comment-11</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 19 Nov 2008 17:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3#comment-11</guid>
		<description>Another option instead of doing it in the code behind:

Just update the where line for the LinqDatasource in design.
Where=&quot;BlogID == Guid(@BlogID)&quot;&gt;</description>
		<content:encoded><![CDATA[<p>Another option instead of doing it in the code behind:</p>
<p>Just update the where line for the LinqDatasource in design.<br />
Where=&#8221;BlogID == Guid(@BlogID)&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comment-10</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 14 Aug 2008 05:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3#comment-10</guid>
		<description>I was just playing around with this to get the windows authenticated user and filtering a grid display for entries by that user. I was trying to figure out the asp, but I&#039;m not that great with asp. The next thought was to save it in the session and do that, but I happened across this and wahoo! Thank you.
I like C#. Works great!
Next thing I&#039;ll need to try is to have a dropdown list and let the user select a different LoginName. For those people that have seen their stuff, now they want to look at somebody elses. So, I&#039;ll need to find that where param and change the default value.
whereparam.DefaultValue = new value
and probably databind.

thanks... good stuff.
john.</description>
		<content:encoded><![CDATA[<p>I was just playing around with this to get the windows authenticated user and filtering a grid display for entries by that user. I was trying to figure out the asp, but I&#8217;m not that great with asp. The next thought was to save it in the session and do that, but I happened across this and wahoo! Thank you.<br />
I like C#. Works great!<br />
Next thing I&#8217;ll need to try is to have a dropdown list and let the user select a different LoginName. For those people that have seen their stuff, now they want to look at somebody elses. So, I&#8217;ll need to find that where param and change the default value.<br />
whereparam.DefaultValue = new value<br />
and probably databind.</p>
<p>thanks&#8230; good stuff.<br />
john.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edcon</title>
		<link>http://www.markvanaalst.com/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comment-9</link>
		<dc:creator>edcon</dc:creator>
		<pubDate>Tue, 13 May 2008 19:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3#comment-9</guid>
		<description>This helped me a lot! Awesome!</description>
		<content:encoded><![CDATA[<p>This helped me a lot! Awesome!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

