Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    May 2002
    Location
    Fort Worth, Texas, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selective processing (VB.net & ASP.net)

    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

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selective processing (VB.net & ASP.net)

    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.

  3. #3
    Lounger
    Join Date
    May 2002
    Location
    Fort Worth, Texas, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selective processing (VB.net & ASP.net)

    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

  4. #4
    Lounger
    Join Date
    May 2002
    Location
    Fort Worth, Texas, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selective processing (VB.net & ASP.net)

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

    I am finally getting though my thick scull <img src=/S/newbrain.gif border=0 alt=newbrain width=21 height=22> 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 <img src=/S/clever.gif border=0 alt=clever width=15 height=15> 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.

    <pre>Private Sub InputChanges(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles txtSymbol1.TextChanged, _
    ddlUnitCode3.SelectedIndexChanged, optFemale9.CheckedChanged, _
    optMale9.CheckedChanged
    </pre>

    <pre> msChanges = True
    </pre>

    <pre>End Sub
    </pre>


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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •