Html.RenderPartial (to my knowledge) is the MSMVC helper used when rendering ascx partials. In your case, if your partial is a spark partial, then you don't need Bindings, you can just call it by typing <FeedbackPageTable/>
Hope that works.
Cheers,
Rob
> --
> You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
> To post to this group, send email to spar...@googlegroups.com.
> To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.
>
But I think your usage might need some adjustments around the quoting of attributes...
<partial name="'FeedbackPageTable'" data=Model />
Try:
<partial name="FeedbackPageTable" data="Model" />
Rob,
Yes, below are both the binding and the call
<element name="Partial"># Html.RenderPartial("@name", new
ViewDataDictionary{{"@*"}});</element>
<Partial name="pm.Partial + 'Edit'" PaymentMethod="${pm}" FullModel="$
{m}" CheckoutHelper="${helper}" />
Thanks!
On Sep 28, 4:37 pm, Rob G <robertgreyl...@gmail.com> wrote:
> Hey John,
>
> To me it just looks like some missing quotes either in your binding or your
> binding usage. Would you be able to post those two snippits and we can have
> a look to see if there are any missing quotes?
>
> Thanks,
> Rob
>
> > .
> > > > > >> > For more options, visit this group athttp://
> > groups.google.com/group/spark-dev?hl=en.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > Groups "Spark View Engine Dev" group.
> > > > > > To post to this group, send email to spar...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > .
> > > > > > For more options, visit this group athttp://
> > groups.google.com/group/spark-dev?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups "Spark View Engine Dev" group.
> > > > > To post to this group, send email to spar...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > .
> > > > > For more options, visit this group athttp://
> > groups.google.com/group/spark-dev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Spark View Engine Dev" group.
> > To post to this group, send email to spar...@googlegroups.com.
> > To unsubscribe from this group, send email to
Rob,
Thanks for the quick response. I tried as you suggested:
<Partial name="${pm.Partial + 'Edit'}" PaymentMethod="${pm}"
FullModel="${m}" CheckoutHelper="${helper}" />
and I got back a similar exception (notice missing quotes around
pm.Parital + "Edit"):
Thanks.
Output.Write(# Html.RenderPartial(pm.Partial + "Edit", new
ViewDataDictionary{{PaymentMethod=pm,FullModel=m,CheckoutHelper=helper}}););
> Have you tried surrounding pm.Partial + 'Edit' with ${ ... } perhaps?
>
> Regards,
> Rob
>
>
> > > > .
> > > > > > > >> > For more options, visit this group athttp://
> > > > groups.google.com/group/spark-dev?hl=en.
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > > > Groups "Spark View Engine Dev" group.
> > > > > > > > To post to this group, send email to
> > spar...@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > spark-dev+...@googlegroups.com<spark-dev%2Bunsu...@googlegroups.com>
>
> > > > .
> > > > > > > > For more options, visit this group athttp://
> > > > groups.google.com/group/spark-dev?hl=en.
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > > > Groups "Spark View Engine Dev" group.
> > > > > > > To post to this group, send email to spar...@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > spark-dev+...@googlegroups.com<spark-dev%2Bunsu...@googlegroups.com>
>
> > > > .
> > > > > > > For more options, visit this group athttp://
> > > > groups.google.com/group/spark-dev?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Spark View Engine Dev" group.
> > > > To post to this group, send email to spar...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > spark-dev+...@googlegroups.com<spark-dev%2Bunsu...@googlegroups.com>
I appreciate your time and help.
I tried it with a few variations but they're all doing the same thing.
The thing that concerns me is that Html.RenderPartial is a void
function but it's still treating it with an Output.Write. Are you
thinking the formatting is throwing off what type it's parsing to?
I'm trying to make and run some tests in the source but I can't get
nUnit to work. Stinking 64bit windows 7 :)
Thanks for your help.
John
To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
With quotes around “@name” the tersest form would be <Partial name=”${pm.Partial}Name” /> - it’ll rewrite the expression into pm.Partial + “Name”.
Well, to be exact it’ll be string.Concat(pm.Partial, “Name”) to avoid potential problems with any operators inside the ${} having lower precedence than +”Name”
Also - you might want to have ViewDataDictionary{{@*}}instead of ViewDataDictionary{{"@*"}}
You’ll want to see if that works first, of course, but from the example it looks like the goal is a dictionary of objects rather than a dictionary of strings - so the stringified variation is forcing you to add a lot of things like FullModel=”${m}” instead of FullModel=”m”.