eallen
Posts: 25
|
Posted: 03/17/2004, 4:46 AM |
|
I am using CCS with asp templates.
I have a page with a search form and 2 dependent grids. When going to page 2 of the parent grid, if there is a parameter for the child grid, I want that parameter cleared so when the parent grid refreshes on page 2, the child grid is cleared, that is not showing the children from any parent record selected in page 1. (I hope this question is clear.. )
I think I know what the code would be to remove the parameter but I'm not sure. More important, where would that code be placed? Nothing I try seems to work.
Thanks in advance for any help.
|
|
|
Gen
|
Posted: 03/17/2004, 11:10 AM |
|
Did you try to put "none" in the "preserve parameters" properties in the properties box?
|
|
|
peterr
Posts: 5971
|
Posted: 03/17/2004, 12:27 PM |
|
Since the Navigator doesn't have such property, I'm not sure if some code modifications may be needed. I'll check into it.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
eallen
Posts: 25
|
Posted: 03/18/2004, 1:55 PM |
|
Quote :Since the Navigator doesn't have such property, I'm not sure if some code modifications may be needed. I'll check into it.
Short of some change to Navigator in the future, is there anything that could be done in the Navigator before show event, like removing parameter from the URL or... whatever..?
Or, for that matter, on the before show of the page.. I did try to remove the parameters but fell short since I haven't been able to get the right syntax correct nor where to place the code. Any help with that would be great too.
TIA
|
|
|
peterr
Posts: 5971
|
Posted: 03/18/2004, 2:04 PM |
|
For now I found that this modification would require changes of about 5-10% of the Navigator code. We may implement this in the future.
I'm still checking into couple options. Will let you know.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
peterr
Posts: 5971
|
Posted: 03/19/2004, 11:25 AM |
|
Sorry for the delay. I guess for now the simplest solution may be to programmatically examine the URL, strip the unnecessary parameter(s) and redirect the page back to itself.
Here is the code for this that should be placed in the page's "After Initialize" event:
If Request.QueryString("agesPage") = 2 Then
Response.Redirect Request.ServerVariables("URL") & "?" & CCGetQueryString("QueryString", array("agesPage"))
End If
("ages" is the the name of the grid in this example)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|