dblayout
|
| Posted: 08/08/2003, 9:57 AM |
|
I have a search & results on the same page. I can't seem to figure out how to hide the results grid if there are 0 results returned from the search. It always just shows an empty grid. How do I do this? I am using ASP.
Thanks
Chris
|
|
|
 |
kevind
|
| Posted: 08/08/2003, 12:14 PM |
|
Assume you have most recent version ?
If yes, open the help screen, click on search and type the text below:
hiding a grid if no records are found
The first article should do it for you - works for me nicely. I don't know if you need to include the record count with the grid or not, that too may be the answer.
still need help - e-mail me: kevin_dalby@kkdalby.com
Kevin
|
|
|
 |
glerma
|
| Posted: 08/09/2003, 3:11 PM |
|
dblayout,
Don't know if you are using plain'ol CC or CC Studio. If it is the latter, then take this as constructive criticism. You should check the CC Studio Help Pages for your question prior to posting in the community. You may find your answer.
I found the exact answer to your question there:
************************************************
Hiding a Grid If No Records are Found
This example shows how to hide a Grid if no records are found to be displayed within the grid.
Assume that a Responses Grid is located below a Topics grid on a page which implements a forum. You can use the code below to hide the Responses Grid if there are no posted responses.
In the Before Show event, add the code shown below:
ASP
Function Responses_BeforeShow()
If Responses.Recordset.EOF Then
Responses.Visible = False
End If
End Function
Regards,
george
|
|
|
 |
|