Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: URGENT-problem with global variable


Message #1 by "John Tyson" <jtyson@t...> on Tue, 25 Feb 2003 08:59:27 -0800
Hi,

In my page I have two panels, "PatReg" and "TAOS."  I declared a
variable "blnReqTAOS" (Boolean) at the top of my code.

If the user is a TAOS subscriber (checked in Sub_PageLoad) or the
insurance plan selected requires TAOS (checked in Sub_InsPlan_Change),
the TAOS panel is set to visible and blnReqTAOS is set the True.  I
checked the value of blnReqTAOS after both of the subroutines and it
gets set properly.

HOWEVER, in my Sub register_patient the value for blnReqTAOS is not
correct.  It is used here to select the appropriate stored procedure to
save the record.  How can this be, since I do not change the value of
blnReqTAOS anywhere else.  A button click fires the Sub register_Patient
routine.

Here is my code - I have highlighted the appropriate lines:
http://www.tairehab.com/help.htm

I would be extremely grateful if someone could take a quick look - I've
been banging my head on this for hours and my deadline is approaching.

Thank you,

John

Message #2 by "John Tyson" <jtyson@t...> on Tue, 25 Feb 2003 09:23:55 -0800

Hi,

It seems to be a problem with postback - can anyone tell me what I can
do to preserve the value of blnReqTAOS across postback?

-----Original Message-----
From: John Tyson
Sent: Tuesday, February 25, 2003 8:54 AM
To: 'ASP.NET'
Subject: URGENT-problem with global variable

Hi,

In my page I have two panels, "PatReg" and "TAOS."  I declared a
variable "blnReqTAOS" (Boolean) at the top of my code.

If the user is a TAOS subscriber (checked in Sub_PageLoad) or the
insurance plan selected requires TAOS (checked in Sub_InsPlan_Change),
the TAOS panel is set to visible and blnReqTAOS is set the True.  I
checked the value of blnReqTAOS after both of the subroutines and it
gets set properly.

HOWEVER, in my Sub register_patient the value for blnReqTAOS is not
correct.  It is used here to select the appropriate stored procedure to
save the record.  How can this be, since I do not change the value of
blnReqTAOS anywhere else.  A button click fires the Sub register_Patient
routine.

Here is my code - I have highlighted the appropriate lines:
http://www.tairehab.com/help.htm

I would be extremely grateful if someone could take a quick look - I've
been banging my head on this for hours and my deadline is approaching.

Thank you,

John


  Return to Index