Last post Jun 27, 2011 12:42 PM by sjnaughton
Jun 27, 2011 01:54 AM|dizruptor|LINK
Can someone provide me with an example of using the DefaultValue attribute with a ForeignKey filter? I can't get it to work!
Jun 27, 2011 07:28 AM|sjnaughton|LINK
Hi Simon, what version of DD are you on VS2008 .Net 3.51 SP1 or VS2010 .Net SP1?
Jun 27, 2011 08:15 AM|dizruptor|LINK
Hi Stephen. I'm using VS2010 sp1, Linq2SQL and .NET4.
Jun 27, 2011 12:42 PM|sjnaughton|LINK
OK if you have a look at your standard Insert page you will see the line
this line takes any value spassed into the page via the route and then passes them to the FormView to populate the default values. so all you need to do is add your values to the dictionary.