• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 731
  • Last Modified:

update / cancel event not firing in the EditItemTemplate in formview

formview Update command just fires the Page_Load event. does not files the update event. pls help
0
eoswin
Asked:
eoswin
  • 3
  • 3
1 Solution
 
Paul JacksonCommented:
Have you set the CommandName attribute on the relevant buttons

CommandName="Update"
CommandName="Cancel"
0
 
eoswinAuthor Commented:
....

  <asp:LinkButton ID="UpdateButton" runat="server"
                        CommandName="Update" Text="Update" onclick="UpdateButton_Click"
                            oncommand="UpdateButton_Command" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                        <br />
                </EditItemTemplate>


plus none of the associated events UpdateButton_Click, UpdateButton_Command firing
0
 
Paul JacksonCommented:
Any reason why you have both onclick and oncommand ?

Can you post the code for the events.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
eoswinAuthor Commented:
those are just empty events... i was trying...
0
 
eoswinAuthor Commented:
<asp:LinkButton ID="UpdateButton" runat="server"
                        CommandName="Update" Text="Update"  />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                        <br />
                </EditItemTemplate>
0
 
Paul JacksonCommented:
Add oncommand attribute to the above does this work?
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now