locked
Formview (button puts Formview in Editmode but the choosen record disappears) RRS feed

  • Question

  • User380413204 posted

    Hi,

    The Records are in a Repeater, clicking them invokes the formview ItemTemplate.

    I can click the EditButton and then click the Repeater to change a record, but I would want to be able to Choose a record, then click the EditButton and the record remains visible.

    The code for the EditButton is:

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

    FormView1.ChangeMode(FormViewMode.Edit)

    End Sub

     

    If you would want to see what I mean, follow this link:

    http://80.126.181.96/web36/Cursusedit.aspx

    (The button with the text "Wijzig" is the EditButton)

     

    Thanks in advance,

    Lex

     

    Tuesday, July 11, 2006 9:48 AM

All replies

  • User380413204 posted

    Solved it,

    Adding a Linkbutton to the Itemtemplate with the same code as the Repeater and pointing to similar code.

    Is the Commandargument preserving the view? Anyway, it works.

    <Club:RolloverLink ID="XXX" runat="server" CausesValidation="false" OnCommand="Editit" CommandArgument='<%# Eval("CursusID") %>'Text="Wijzig"></Club:RolloverLink>

    Lex

    Wednesday, July 12, 2006 1:06 PM