Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Passing Variables between subroutines


Message #1 by "Hugh McLaughlin" <hugh@k...> on Sat, 27 Jul 2002 17:36:18
Hello Everyone and thanks for your help in advance.  I am working on an 
application that performs a database lookup in the Page_Load subroutine.  
From that data, string variables are built that need to be used with two 
other On_Click Events.  I am unsure how to make these variables available 
to other suroutines or how to pass them from the page_load to the 
On_click.  Any help on this issue would be greatly appreciated.  Thanks.
Message #2 by "Paul Birch" <paulbirch@b...> on Sat, 27 Jul 2002 18:14:05 +0100
Hugh,

Put them in hidden controls, then they get passed back in the event args.

Paul.

----- Original Message -----
From: "Hugh McLaughlin" <hugh@k...>
To: "ASP+" <aspx@p...>
Sent: Saturday, July 27, 2002 5:36 PM
Subject: [aspx] Passing Variables between subroutines


> Hello Everyone and thanks for your help in advance.  I am working on an
> application that performs a database lookup in the Page_Load subroutine.
> From that data, string variables are built that need to be used with two
> other On_Click Events.  I am unsure how to make these variables available
> to other suroutines or how to pass them from the page_load to the
> On_click.  Any help on this issue would be greatly appreciated.  Thanks.

Message #3 by "Hugh McLaughlin" <hugh@k...> on Sat, 27 Jul 2002 20:07:16
Is there any other way to do this.  It is really quite a bit of data that 
I would prefer not to be visible.

> Hugh,

Put them in hidden controls, then they get passed back in the event args.

Paul.

----- Original Message -----
From: "Hugh McLaughlin" <hugh@k...>
To: "ASP+" <aspx@p...>
Sent: Saturday, July 27, 2002 5:36 PM
Subject: [aspx] Passing Variables between subroutines


> Hello Everyone and thanks for your help in advance.  I am working on an
> application that performs a database lookup in the Page_Load subroutine.
> From that data, string variables are built that need to be used with two
> other On_Click Events.  I am unsure how to make these variables 
available
> to other suroutines or how to pass them from the page_load to the
> On_click.  Any help on this issue would be greatly appreciated.  Thanks.

Message #4 by "Lars Tengstedt" <Lars.Tengstedt@e...> on Mon, 29 Jul 2002 09:10:01 +0200
Hi Hugh,

Add the variables as members to the class.

Lars

-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: 27. juli 2002 19:36
To: ASP+
Subject: [aspx] Passing Variables between subroutines

Hello Everyone and thanks for your help in advance.  I am working on an
application that performs a database lookup in the Page_Load subroutine.

From that data, string variables are built that need to be used with two

other On_Click Events.  I am unsure how to make these variables
available
to other suroutines or how to pass them from the page_load to the
On_click.  Any help on this issue would be greatly appreciated.  Thanks.

  Return to Index