Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass selection from Grid DTC 1

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
US
Hey everyone,
I have not used DTC's before. I have a DTC grid bound to a record set which shows the results of a stored procedure (id, name and address, etc) - no problem here. But how can I let the user select an item from the grid and pass the name and address to another asp page for further querying?

Any help is greatly appreciated.

Rich
 
Try this:
In the data tab, click Add Unbound Column and in the field/expression box type something like this:
=&quot;<A HREF=nextPage.asp?ID=&quot; + [IDfieldname] + &quot;>&quot; + [IDfieldname] + &quot;</A>&quot;

so that what you are doing is adding a link with whatever name value pairs you want to send along in the url. You can put whatever you want between the <a> and </a> tags, I just put the field name.

Hope this helps.
 
Great! That is exactly what i was looking for.

Many thanks.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top