tag:blogger.com,1999:blog-6907873803403737979.post5638969410856715704..comments2023-10-16T12:48:46.251+01:00Comments on C# Bits: Getting Default Values from List page Filters for Insert – Dynamic DataStephen J. Naughtonhttp://www.blogger.com/profile/17435527974910745156noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-6907873803403737979.post-71646359026122192512016-07-01T10:45:28.779+01:002016-07-01T10:45:28.779+01:00Sorry Christian, just looked and my e-mail is no l...Sorry Christian, just looked and my e-mail is no longer there?<br /><br />e-mail me on steve (AT) NotAClue.net<br /><br />SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-7337919813711021152016-07-01T10:43:58.167+01:002016-07-01T10:43:58.167+01:00Hi Christian. send me a direct e-mail, I may have ...Hi Christian. send me a direct e-mail, I may have some code I can send you.<br /><br />My e-mail is in the top right of the page.<br /><br />SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-37151751662945583562016-06-30T20:08:47.250+01:002016-06-30T20:08:47.250+01:00Hi Steve, i have a list.aspx page with a gridview...Hi Steve, i have a list.aspx page with a gridview and dynamicfilter (dropdownlist) to filter gridview. I add a botton to export gridview to excel. When i click on this botton i need to get the selected values from dropdownlist (that user changed) to show this on the generated excel file... can you guide me how to do that...?<br />Thakk you very much...Anonymoushttps://www.blogger.com/profile/14743041598921836470noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-73151042750617570292011-09-21T18:09:06.568+01:002011-09-21T18:09:06.568+01:00Hi again, yes you can get the values using this ex...Hi again, yes you can get the values using this example see http://csharpbits.notaclue.net/2010/12/filter-history-for-dynamic-data-4.html<br /><br />SteveStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-2522497428212722772011-09-21T17:51:51.378+01:002011-09-21T17:51:51.378+01:00Thanks again for the great article. Is there any ...Thanks again for the great article. Is there any way to make this work with the 4 framework or do you have an updated article using 4? Thanks again for the article and the quick response.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-46052268912214321462011-09-21T16:47:15.150+01:002011-09-21T16:47:15.150+01:00Hi there, this is an old post for DD in .Net 3.5 n...Hi there, this is an old post for DD in .Net 3.5 not .Net 4 sorryStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-56623122031368557832011-09-21T16:21:43.508+01:002011-09-21T16:21:43.508+01:00Where do you put the hyperlink in List? In the Pa...Where do you put the hyperlink in List? In the PageLoad? I tried that and get...<br /><br />'System.Web.DynamicData.QueryableFilterRepeater' does not contain a definition for 'GetQueryStringParameters' and the best extension method overload 'ExtensionMethods.GetQueryStringParameters(System.Web.DynamicData.FilterRepeater)' has some invalid argumentsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-19880121848625469972010-01-22T16:58:47.589+00:002010-01-22T16:58:47.589+00:00Hi wRAR they are now superceded with VS2010 and .N...Hi wRAR they are now superceded with VS2010 and .Net 4.0, I shall look at doing a version for DDv2 and VS2010 soon.<br /><br />Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-17772783039224674762010-01-22T11:49:57.417+00:002010-01-22T11:49:57.417+00:00No, DD Preview 4 in VS2008.No, DD Preview 4 in VS2008.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-37478303545109999392010-01-21T17:35:15.375+00:002010-01-21T17:35:15.375+00:00Hi wRaR, is that in DDv2 with VS2010?Hi wRaR, is that in DDv2 with VS2010?Stephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-37763712063077073722010-01-21T17:17:44.405+00:002010-01-21T17:17:44.405+00:00Unfortunately, it doesn't work with QueryableF...Unfortunately, it doesn't work with QueryableFilterRepeater/QueryableFilterUserControl. QueryableFilterRepeater doesn't have an easy way to iterate over filters (but it is not fatal), and DynamicFilter/QueryableFilterUserControl don't have a way to get the selected valuem only IQueryable.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-2336882037129940162009-07-08T12:21:03.733+01:002009-07-08T12:21:03.733+01:00There is a project on codeplex N41 which adds clon...There is a project on codeplex <a href="http://n41dynamicdataex.codeplex.com/" rel="nofollow">N41</a> which adds clone behavoir to DD already.<br /><br />Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-73789255577739920782009-07-08T11:51:49.566+01:002009-07-08T11:51:49.566+01:00Hello!
Thanks for such a grand nice example. Howev...Hello!<br />Thanks for such a grand nice example. However, I was wondering whether it would be possible to insert a new item on the basis of an existing one that would work similarly to the "Edit" button. Wouldn't it be a good idea for another post?Unknownhttps://www.blogger.com/profile/10589167924752362473noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-5855296864495486272009-07-08T11:49:42.092+01:002009-07-08T11:49:42.092+01:00Hello!
Thanks for such a grand nice example. Howev...Hello!<br />Thanks for such a grand nice example. However, I was wondering whether it would be possible to insert a new item on the basis of an existing one that would work similarly to the "Edit" button. Wouldn't it be a good idea for another post?Unknownhttps://www.blogger.com/profile/10589167924752362473noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-67620393851009531942009-06-30T15:50:42.134+01:002009-06-30T15:50:42.134+01:00Sorry, forget about the issue. I solved it myself....Sorry, forget about the issue. I solved it myself. Was a project setting thing. Thanks anyway.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-50153886652556980092009-06-30T15:10:15.187+01:002009-06-30T15:10:15.187+01:00Hi. Sorry to bother you. I tried to add your tutor...Hi. Sorry to bother you. I tried to add your tutorial to my dynamic data project and know I get the following compiler error and I don't know how to solve it:<br /><br />CS0121: The call is ambigous between the following methods: 'ExtensionMethods.GetFilterControls(System.Web.DynamicData.FilterRepeater)' and 'ExtensionMethods.GetFilterControls(System.Web.DynamicData.FilterRepeater)'Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-84872413585121040182009-06-25T08:17:52.802+01:002009-06-25T08:17:52.802+01:00Sorry Matt, I don't understand your question, ...Sorry Matt, I don't understand your question, why don't you e-mail me direct, my e-mail is in the top right hand side of the page.<br /><br />Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-74269614411811856762009-06-22T20:55:08.942+01:002009-06-22T20:55:08.942+01:00Thanks Steve. The event handler link solved my is...Thanks Steve. The event handler link solved my issue. I appreciate the quick responses as I'm almost there. One last question when you are less busy: Is there a way to apply the same behavior to the 'Insert New Item' button outside of the Gridview? The querystring pass and default set on foreign key filter work fine when inserting off the link within the gridview, but I'm hoping I can link it to the general insert outside of the gridview at the bottom. I tried the code from your steps, but it doesn't seem to operate the hyperlink in the same way. -mMatthttps://www.blogger.com/profile/17994700309580865491noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-79805919880888697202009-06-22T20:16:17.453+01:002009-06-22T20:16:17.453+01:00Change to Designe mode and click the dropdownlist ...Change to Designe mode and click the dropdownlist and select the event icon (lightening bolt) not you can see the events instead of the properties. Find th ePreRender event and click the drop down list and choose the name of the method you pasted in.<br /><br />Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-36270177852890267442009-06-22T20:01:12.585+01:002009-06-22T20:01:12.585+01:00How do you 'wire up the event handler' as ...How do you 'wire up the event handler' as you noted in Step 1? Shouldn't this be listed in the tutorial for a few of the slower folks (myself!)?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-66058461343099073942009-06-22T16:42:52.240+01:002009-06-22T16:42:52.240+01:00Steve, I'm in a bind. I just want to simply h...Steve, I'm in a bind. I just want to simply have the foreign key selected filters auto-filled in when a user clicks 'Insert New Record' in any dynamic data instance. I need this in VB.net but can't find any instructional videos or step-by-steps. Is there a simple solution for this for a novice? It's the last part I need for my application, save for the proper ordering of the foreign key dropdownlist fields, which are not alphabetized based on the value..rather the primary key behind the scenes. Dynamic data was so close on everything else, not sure why they left out these elements. I'd appreciate anything you can offer. - Matthew Leach (matthewhleach@gmail.com)Matthttps://www.blogger.com/profile/17994700309580865491noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-9984816510544549722009-05-18T16:24:00.000+01:002009-05-18T16:24:00.000+01:00I would use the model in L2S <Table>Insert p...I would use the model in L2S <Table>Insert partial method on the data context or if you are useing EF look here http://msdn.microsoft.com/en-us/library/cc716714.aspx<br /><br />Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-90795429918089143862009-05-18T15:27:00.000+01:002009-05-18T15:27:00.000+01:00Hi,
I am logging all inserts and updates with use...Hi, <br />I am logging all inserts and updates with user ID information. So i don't want to choose the user who created the insert or edited data. because i already who he/she is. So how can i insert user information when i insert data and user is foreign key. <br /><br />i tried do it in detailsview1_iteminserting event but it's failed.<br /><br />protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e)<br /> {<br /> e.Values.Add("CreatedDate", DateTime.Now);<br /> //e.Values.Add("aspnet_Users", Tools.GetCurrentUser());<br /> }<br /><br />I want your wonderful advices.Nesim T.https://www.blogger.com/profile/10787602658024044871noreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-31985999253033236012009-04-07T13:27:00.000+01:002009-04-07T13:27:00.000+01:00Hello Steve, I appreciate all your help that you g...Hello Steve, I appreciate all your help that you give me. The solution works well thank to you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6907873803403737979.post-61459921968964547702009-04-06T23:21:00.000+01:002009-04-06T23:21:00.000+01:00Sorry for not being clear you class also need to b...Sorry for not being clear you class also need to be static:<BR/>public static class ExtensionMethods<BR/>{<BR/><BR/>Sorry again<BR/>Steve :DStephen J. Naughtonhttps://www.blogger.com/profile/17435527974910745156noreply@blogger.com