I am transfering a value from one web form to another using a click event on the source form. Once the value is carried to the second web form, there are 2 buttons on the form. One of them is (Add Another Claimant), and another is (Add Another Transacation). I would like the value that was transfered to stay filled when i click these buttons, however, clicking these buttons seems to refresh the page and i lose that value. any suggestions for keeping it?
here is my code to transfer the value:
'Source form (NewClaim.aspx)
Private Sub lnkAddClaimant_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkAddClaimant.Click
Context.Items.Add("Claim Number", txtClaimNUmber.Text)
Server.Transfer("Claimant1.aspx")
'Destination form (Claimant1.aspx)
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtClaimNum.Text = Context.Items("Claim Number")
here is my code to transfer the value:
'Source form (NewClaim.aspx)
Private Sub lnkAddClaimant_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkAddClaimant.Click
Context.Items.Add("Claim Number", txtClaimNUmber.Text)
Server.Transfer("Claimant1.aspx")
'Destination form (Claimant1.aspx)
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtClaimNum.Text = Context.Items("Claim Number")