Have you checked the FORM data to make sure the study.id is coming through properly?
--- Patrick Steele http://weblogs.asp.net/psteele On Sun, Jun 13, 2010 at 7:32 AM, Marc Pickett <[email protected]> wrote: > Did I not phrase this question correctly, or leave some necessary piece of > information out? > Anyone? > > On Fri, Jun 11, 2010 at 12:01 PM, Marc <[email protected]> wrote: >> >> I may be missing something basic here but I can not get the ARDataBind >> to work with my routes. >> Here is my setup. >> >> I have a route defined as >> >> rules.Add(new PatternRoute("studies/<study.id>/[action]") >> .DefaultForArea().IsEmpty >> .DefaultForAction().Is("manage") >> .DefaultForController().Is("study")); >> >> And a method signature of >> >> [AccessibleThrough(Verb.Post)] >> public void Update([ARDataBind("study", >> AutoLoad=AutoLoadBehavior.Always)] Study study) >> >> When I POST to this URI I get an 'Length can not be less than zero.' >> exception. >> >> It seems like I am missing something really obvious here but I can't >> for the life of me figure it out. >> Any help is greatly appreciated. >> >> Thanks in advance, >> >> Marc >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Users" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/castle-project-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
