Solved

update / cancel event not firing in the EditItemTemplate in formview

Posted on 2011-03-03
6
698 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 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