--
Contact Jeffrey Palermo or Eric Hexter with specific questions about the MvcContrib project. Or go to http://mvccontrib.org
To unsubscribe from this group, send email to mvccontrib-disc...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mvccontrib-discuss?hl=en
http://github.com/mhinze/unbound
I was actually just thinking about getting this cleaned up and
submitted to MvcContrib..
We've got metadata afterall... we have the technology...
Makes we want to go and do it in an acceptably generic way that would
work for most situations. The problem is, it's probably already done
somewhere in there in MVC framework, and I don't want to waste my
time. Just got to find it. Do I need to implement a custom model
binder/unbinder? Subclass System.ComponentModel.TypeConverter and use
[TypeConverter(MyTypeConverter)] on the model class?
I mean, how does RedirectToAction() or View() or RedirectToRoute() do
it now? Would that suffice? If not, can something be done to adapt
the approach they are using? Surely, somewhere in the MVC framework
is a QueryStringSerializer (or something like it already -- otherwise,
how does the post of a form get deserialized into an object?).
If someone can verify what is/is not done, then I'd be glad to
contribute... if someone can point me to the right spot to interject
the mechanism...
> On 26 February 2010 20:36, AndrewOz <andrew.os...@gmail.com> wrote:
>
>
>
> > Is there a more succinct or "standard" or "MVC2" way to have complex
> > objects passed to target actions of RedirectToAction<T>()? In other
> > words, in the query string. I know I can override "ToString()" but
> > that seems to be using ToString for something it wasn't intended. Is
> > there another attribute or some other way to have the QueryString
> > generated automagically? using TempData as
> > [PassParametersDuringRedirect] does seems, well, dirty and prone to
> > breakage and is not future proof.
>
> > --
> > Contact Jeffrey Palermo or Eric Hexter with specific questions about the
> > MvcContrib project. Or go tohttp://mvccontrib.org