This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > November 2004 > asp show region





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author asp show region
-D-

2004-11-30, 7:16 pm

Is there a way to use the show region server behavior to display information
from a database when a user clicks a button within a form? I have one form with
only header information displayed initially. I want to add a button that will
show the related records to the header record when a user clicks the button
'Display Transactions'. What is the best way to accomplish this? Thanks, -D-

Brandon Taylor

2004-11-30, 7:16 pm

You're probably needing to pass a value to filter a recordset for the
Transactions, correct?

If so, just have your form pass the value through the querystring, open a
recordset with the information you need and then you could make the region
on your page show/hide based on whether or not the recordset is empty.

<% if not rs.eof then %>
put your HTML here
<% end if %>

Even if you want to use the built-in behaviors, you're still validating
against a condition, i.e., this is true, this is false, this is > 0,
whatever.

HTH,
bT

"-D-" <webforumsuser@macromedia.com> wrote in message
news:coifpu$pl8$1@forums.macromedia.com...
> Is there a way to use the show region server behavior to display
> information
> from a database when a user clicks a button within a form? I have one form
> with
> only header information displayed initially. I want to add a button that
> will
> show the related records to the header record when a user clicks the
> button
> 'Display Transactions'. What is the best way to accomplish this?
> Thanks, -D-
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews