• Selective processing (VB.net & ASP.net)

    Home » Forums » Developers, developers, developers » DevOps Lounge » Selective processing (VB.net & ASP.net)

    • This topic has 3 replies, 2 voices, and was last updated 20 years ago.
    Author
    Topic
    #416449

    In the following code everything processes except the label updates.

    RunNonQuery() updates the table and the printer friendly page, G50Print.aspx, appears correctly but when I hit the back button and return to the original page the screen updates within the With

    Viewing 0 reply threads
    Author
    Replies
    • #931664

      When you use the back button after a Server.Transfer(), the previous page is displaying its initial state – not its processed state. Try commenting the Server.Transfer() line and you should see the results of the With block.

      • #931713

        Thanks for the reply, but I was aware of that, the first screen worked properly before I added the Server.Transfer line.

        This is a save the record and go to the printer friendly screen button. In the program the screen is refreshed–error messages are removed, the text fields are blanked out, etc.–in place of the With

        • #948000

          I waited to post my solution to this problem until I heard back from the testers…

          I am finally getting though my thick scull newbrain the fact that web commands process differently from Access VBA. Fortunately I found this little trick to make life easier. I am sure the masters clever were aware of this but I am still learning. One sub can handle changes to all of the fields, dropdowns, option buttons, etc. and mark a global Boolean if anything changes. Of course I had to reset it at various other places.

          Private Sub InputChanges(ByVal sender As System.Object, _
              ByVal e As System.EventArgs) Handles txtSymbol1.TextChanged, _
              ddlUnitCode3.SelectedIndexChanged, optFemale9.CheckedChanged, _
              optMale9.CheckedChanged
          
             msChanges = True
          
          End Sub
          

          Fortunately, the testers did not complain about the separate Save and Printer Friendly Version buttons.

    Viewing 0 reply threads
    Reply To: Selective processing (VB.net & ASP.net)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: