how to save DetailedView in Edit Mode from another button
<p>is there a way to save a detailview  that is in Edit Mode from another button that is not part of the DetailView?  In other words i have a detailview that is in edit mode and has the Save or the Update button but sometimes the users forget to click the Save button and they just go ahead and click another button that is the bottom of the page.  I want to make sure the data they entered in the DetailView to be saved first when they click the other button.
I have this command names:</p>

<pre><code>&lt;EditItemTemplate&gt;
                        &lt;asp:Button ID="Button1" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Save Changes" /&gt;
                        &amp;nbsp;&lt;asp:Button ID="Button2" runat="server" CausesValidation="False" 
                            CommandName="Cancel" Visible="false" Text="Cancel" /&gt;

                    &lt;/EditItemTemplate&gt;

                    &lt;ItemTemplate&gt;
                        &lt;asp:Button ID="Button1" runat="server" CausesValidation="False" 
                            CommandName="Edit" Text="Save Changes" /&gt;
                    &lt;/ItemTemplate&gt;  
</code></pre>

<p>this is what i have done after your suggestion:
</p>
