Save & Print RRS feed

  • Question

  • User-797751191 posted


       I have below code . It is going to Print.aspx but not saving record. It is not going in Save function.

    <div class="form-group col-md-4">
    <asp:Button ID="btnSave" runat="server" class="btn btn-primary" Text="Save" Style="float: right; margin-top: 25px;" OnClick="btnSave_Click" PostBackUrl="Print.aspx"/>


    Sunday, June 23, 2019 4:43 PM


  • User475983607 posted

    The code shown is not complete.  However, I recommend removing the PostBackUrl="Print.aspx" attribute and add Response.Redirect(Print.aspx) to the btnSave_Click handler in the current page - after saving the record of course.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 23, 2019 5:26 PM