web extensions - dynamic forms


P

Peter Morris

Hi all

I want to generate forms dynamically, like so

<form action="Update" method="Post">
<asp:repeater id="FormMembersRepeater" runat="server">

<ItemTemplate>
<input
name="TV_<# DataBinder.Eval(Container.DataItem, "Name") %>"
value="<# DataBinder.Eval(Container.DataItem, "Value") %>"
maxlength="<# DataBinder.Eval(Container.DataItem, "MaxLength")
%>"
</ItemTemplate>

</asp:repeater>
</form>


I expect I will have to have a parameterless method for my controlleraction

[ControllerAction]
public void Update()
{
}

My question is, how do I discover all posted form values starting with TV_
and get their values?



Thanks


Pete
 
Ad

Advertisements


Top