Modify Default.aspx to list recent changeshttp://forums.asp.net/t/1493076.aspx/1?Modify+Default+aspx+to+list+recent+changesTue, 24 Nov 2009 21:26:35 -050014930763513921http://forums.asp.net/p/1493076/3513921.aspx/1?Modify+Default+aspx+to+list+recent+changesModify Default.aspx to list recent changes <p><font color="rgb(0, 0, 0)"><font face="Verdana,Arial,Helvetica,sans-serif">Im playing with DD Linq-to-SQL and started thinking of having a &quot;recent 10 DVDs in my collection&quot; list in the Default.apsx</font></font></p> <p><font color="rgb(0, 0, 0)"><font face="Verdana,Arial,Helvetica,sans-serif">What is the easiest way to do this?<br> </font></font></p> <p><br> </p> 2009-11-15T16:28:09-05:003514169http://forums.asp.net/p/1493076/3514169.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>That all depends on how you are determining which the most recent DVD [:D] if you are using a date field then you could look at implementing a top ten filter in dd Preview 4 or DDv2 in VS2010 Beta 2. </p> <p>There is not much that will enable you to do this (if I am understanding what you want) in DDv1.&nbsp;</p> 2009-11-15T22:25:31-05:003525795http://forums.asp.net/p/1493076/3525795.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>I see. Im currently not using DDv2. Thanks for the help.<br> </p> 2009-11-21T18:04:33-05:003525845http://forums.asp.net/p/1493076/3525845.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>There is antoher way if you are using Linq to SQL then Josh Heyes' Dynamic Data filtering on codeplex here:<a href="http://dynamicdatafiltering.codeplex.com/">http://dynamicdatafiltering.codeplex.com/</a> may help, as this implements something alin to the new stuff but only for L2S though [:D] see my article here for installation: <a href="http://csharpbits.notaclue.net/2009/01/dynamic-data-filtering-installation.html"> http://csharpbits.notaclue.net/2009/01/dynamic-data-filtering-installation.html</a></p> <p>Hope this helps [:D]</p> 2009-11-21T19:01:17-05:003525881http://forums.asp.net/p/1493076/3525881.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Wow! That looks awesome. But I have one question for now. I have my site on a local server here, and im creating this site on my desktop computer. After I have published the project, do the <br> </p> &lt;div&gt;<span id="ctl00_ctl00_MasterContent_RightSideBar_CurrentRelease_Sidebar_releaseTitleLabel">Dynamic Data Filtering 1.10 have to be installed on the server to make this work?</span>&lt;/div&gt;&lt;div&gt;<br> &lt;/div&gt;&lt;div&gt;<span>Thanks<br> </span>&lt;/div&gt; <p><br> </p> 2009-11-21T19:39:06-05:003525894http://forums.asp.net/p/1493076/3525894.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>When you add the a control via the toolbox the references are all added so no need to install on&nbsp;server [:D]&nbsp;</p> 2009-11-21T19:58:16-05:003525912http://forums.asp.net/p/1493076/3525912.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Just tried it and it works <img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif" alt="Sealed" title="Sealed" border="0"><img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif" alt="Cool" title="Cool" border="0"> But I got a question. Do I have to make a partial classfile for all tables I have now, or is it possible to just enable this to one or two tables if I Create custom sites?<br> </p> 2009-11-21T20:12:05-05:003525961http://forums.asp.net/p/1493076/3525961.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>no you can create them pice meal just add each class as you need it [:D] so it you only need to add filters to one talbe then only add metadata for that table [:D]&nbsp;</p> 2009-11-21T21:36:30-05:003525968http://forums.asp.net/p/1493076/3525968.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Im playing with Northwind and I got one more. Now I have created Order_Details.cs in my App_Code folder. No Filters is showing up. Orders.cs works perfect and I cant understand what im doing wrong here</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>using System;<br> using System.Collections.Generic;<br> using System.Linq;<br> using System.Web;<br> using System.ComponentModel.DataAnnotations;<br> using System.ComponentModel;<br> using Catalyst.ComponentModel.DataAnnotations;<br> <br> <br> [MetadataType(typeof(Order_DetailsMD))]<br> public partial class Order_Details<br> {<br> &nbsp;&nbsp;&nbsp; public class Order_DetailsMD<br> &nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object OrderID { get; set; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object ProductID { get; set; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object UnitPrice { get; set; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object Quantity { get; set; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object Discount { get; set; }<br> &nbsp;&nbsp;&nbsp; }<br> }</p> <p>&nbsp;</p> <p>Any help?</p> 2009-11-21T21:49:38-05:003525984http://forums.asp.net/p/1493076/3525984.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Try:</p> <pre class="prettyprint">using Catalyst.ComponentModel.DataAnnotations; [MetadataType(typeof(Order_DetailsMD))] public partial class Order_Details { public class Order_DetailsMD { public object OrderID { get; set; } public object ProductID { get; set; } public object UnitPrice { get; set; } [Filter(FilterMode = FilterControlMode.Contains)] public object Quantity { get; set; } public object Discount { get; set; } } }</pre> <p>Hope this helps...</p> 2009-11-21T22:26:12-05:003526163http://forums.asp.net/p/1493076/3526163.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Nothing happens. I tried creating a new WebSite and created partial classes for Employees and Products. It's just Order that really works<img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif" alt="Cry" title="Cry" border="0"><br> </p> 2009-11-22T07:28:12-05:003526239http://forums.asp.net/p/1493076/3526239.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Did you setup through my article here:&nbsp;<a href="http://csharpbits.notaclue.net/2009/01/dynamic-data-filtering-installation.html">http://csharpbits.notaclue.net/2009/01/dynamic-data-filtering-installation.html</a>&nbsp;</p> 2009-11-22T10:49:19-05:003526377http://forums.asp.net/p/1493076/3526377.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Yes, I did. But when it works for Order, but not Products, Order_Details or Employees I would believe it's something with my partial class-files. Still I can't see anything wrong with the one i pasted code for here<br> </p> 2009-11-22T14:08:49-05:003526482http://forums.asp.net/p/1493076/3526482.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p></p> <blockquote><span class="icon-blockquote"></span> <h4>kisyv</h4> I would believe it's something with my partial class-files</blockquote> &nbsp; <p></p> <p>This is usually the case [:(]</p> 2009-11-22T16:29:54-05:003530788http://forums.asp.net/p/1493076/3530788.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Is it possible that you could add other partial class files at your blog entry, if you got any? I still havent fingured out what it could be, and I would like to see if you have any partial class files for other tables that I could try <img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif" alt="Smile" title="Smile" border="0"> </p> <p>It's a bit frustrating that I can't get this to work <img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif" alt="Yell" title="Yell" border="0"><br> </p> 2009-11-24T18:58:25-05:003530986http://forums.asp.net/p/1493076/3530986.aspx/1?Re+Modify+Default+aspx+to+list+recent+changesRe: Modify Default.aspx to list recent changes <p>Sorry Kisyv, I'm not sure what you want,&nbsp;what I woudl do is get DDFiltering working with a test project first say AdventurewWorks DB and try some of Joshes sample until you get to know it. [:D]&nbsp;</p> 2009-11-24T21:26:35-05:00