CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 ASP & CCS: CCRemoveParam

Print topic Send  topic

Author Message
DonB
Posted: 11/04/2002, 12:32 PM

Have you used this function? I'd like to know why I can't get it to do what
I want.

I have a page with a grid and a edit form. I want the edit form to be
hidden unless doing an edit or insert. While I can hide/show the edit form
by setting the Visible property, I can't determined when an insert is
underway (Conveniently, there is a property "EditMode" that tells me when I
am editing).

So the thought was to generate a query parameter indicating the action.
This also works. I get "&insert=1" appended to the URL. Now, the tricky
part:: Removing this after the insert is terminated (either cancel or add
buttons are clicked).

I expected CCRemoveParam to take the "&insert=1" off the URL, but it does
not.

I'm doing this in the Server On Click for the Cancel button:

CCRemoveParam "Querystring","Insert"

It behaves as a "no-op" as fara as I can tell. I've tried several different
values for either parameter, and still no luck.

The help file is useless for this, (1) because it shows the PHP help for
both PHP and ASP and (2) the example is so poor I can't make any sense out
of it (i.e., it creates questions instead of answering mine).

Maybe there is a better way to achieve my desired behavior?

Anyone? Anyone?

thanks,

DonB

DonB
Posted: 11/04/2002, 12:36 PM

Well, evidently the trick it to ALSO do "Preserve Parameters" = None on the
form properties. Did that, now it seems to be working. Fortunately, in
this case I don't have any other parameters that need preserving - otherwise
I suppose this would not be the solution I need.

DonB


   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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