CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Is Using REQUEST(Variable) OK?

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 03/14/2005, 1:20 PM

If you see my previous message, I'm -often- confused using Events to assign variables.

However, I've found that I can always seem to rely on REQUEST(Variable) if I need to get some info passed from a previous page.

For example, I have a header page with a droplist and a button. When the user presses the submit button, the selected value in the listbox is assigned to a session variable.

I tried and tried to figure out how to get the currently selected value of the listbox into the Button_Update OnClick() method but to no avail.

So I tried:

Session('GLO_CostCenterID') = REQUEST('CostCenterID')

...works great.

HOWEVER, I don't see this technique used in the pre-generated code so my questions are:

1. Is there a better way to do what I want that uses CC methods instead?

2. Is what I did acceptable or are there pitfalls I don't see?

TIA,

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
DonB
Posted: 03/17/2005, 5:34 AM

It's no sin to use Session variables, unless you stuff huge amounts of data
in them. Scalability becomes an issue if you abuse them, because memory
limits the number of users you can support.

As to the Request object, it's "wrappered" in the CCGetFromPost(),
CCGetFromGet() and CCGetParam() functions. I'd stick with the CCS functions
to ensure future compatability with future versions of CCS as well as
"translate-ability" (if you want to migrate to PHP or other technology at
some point).

--
DonB

http://www.gotodon.com/ccbth
Oper


Posts: 1195
Posted: 03/17/2005, 5:48 AM

As Donb said the problem will be scalablity, in short words is Session variable reserve memory form the server if you abuse then you server will waste lot of memory whne you have many concurent section.

If the data you are passing from one program to another is not security vital you could always send as a paramteres.

but if the content of the data is security related send then useing session vars, cookie encripted or files.

Just dont abuse of sessions var. or try to reuse then like
Session("temp1)=
Session("temp2)=
Session("temp3)=

and maybe you coudl workitout a full app with just few session variables.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.