SharePoint Custom Code (Submit/Cancel) button handling

SharePoint, XLS, ASP

Submit/Cancel buttons would like Submit to save but stay on same page

                                    <td class="ms-toolbar" nowrap="nowrap">
                                          <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/>
                                    <td class="ms-separator">
                                          <xsl:text xmlns:ddwrt="" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
                                    <td class="ms-toolbar" nowrap="nowrap" align="right">
                                          <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/>
Matt PinkstonAsked:
Who is Participating?
If you are trying to overwrite the submit button in a list may be this link gets you more idea

the idea is to get the id of the button and use javscript to update the function to do something else

$('#some-form').submit(function(e) {
//try writing your code here

another idea is create a link and add source parameter in the URL at the end "&Source="your URL""
Matt PinkstonAuthor Commented:
the article helped thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.