web extensions - dynamic forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Morris

    web extensions - dynamic forms

    Hi all

    I want to generate forms dynamically, like so

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

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

    </asp:repeater>
    </form>


    I expect I will have to have a parameterless method for my controlleractio n

    [ControllerActio n]
    public void Update()
    {
    }

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



    Thanks


    Pete


Working...