Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

update / cancel event not firing in the EditItemTemplate in formview

Posted on 2011-03-03
6
Medium Priority
?
712 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
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!

 

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 2000 total points
ID: 35032575
Add oncommand attribute to the above does this work?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 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