Solved

update / cancel event not firing in the EditItemTemplate in formview

Posted on 2011-03-03
6
693 Views
Last Modified: 2012-05-11
formview Update command just fires the Page_Load event. does not files the update event. pls help
0
Comment
Question by:eoswin
  • 3
  • 3
6 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35032120
Have you set the CommandName attribute on the relevant buttons

CommandName="Update"
CommandName="Cancel"
0
 

Author Comment

by:eoswin
ID: 35032138
....

  <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
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35032312
Any reason why you have both onclick and oncommand ?

Can you post the code for the events.
0
Technology Partners: 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!

 

Author Comment

by:eoswin
ID: 35032333
those are just empty events... i was trying...
0
 

Author Comment

by:eoswin
ID: 35032394
<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
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 35032575
Add oncommand attribute to the above does this work?
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Initial get page response times and IIS8 15 61
asp.net input html code have it display the content 2 30
Generate Unique ID in VB.NET 21 100
How to filter by key press ? 6 54
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question