Solved

update / cancel event not firing in the EditItemTemplate in formview

Posted on 2011-03-03
6
687 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now