SHARE
TWEET

Untitled

a guest Jan 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. in 1st page/ page load
  2. ViewState["orders"] = orders;
  3.  
  4. on form
  5.  <asp:Button runat="server" ID="cmdTransfer" Text="view orders" OnClick="cmdTransfer_Click" Visible="True" />
  6.  
  7. the function button points to
  8.  protected void cmdTransfer_Click(object sender, EventArgs e)
  9.     {
  10.         this.Context.Items["orders"] = ViewState["orders"];
  11.         Server.Transfer("CrossPage2.aspx", true);
  12.     }
  13.  
  14. 2nd page
  15.  orders= (List<Order>)this.Context.Items["orders"];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top