469,641 Members | 1,189 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Hyperlink parameters & DataGrids

I need to pass an id from one record to a different page. The ID is in a
Datagrid and I want to pass the record to another page. Example:
http://www.domain.com?RecordID=2
the parameter I want to pass is RecordID with a value 2.

How would I send the RecordID from a datagrid?
Nov 19 '05 #1
1 1159
The simplest solution would be to use a Hyperlink column, right-click the
datagrid control, select "Property Builder" and add a Hyperlink column to the
grid. Then set the "URL Field" to the RecordID and the "URL Format string"
to "http://www.domain.com?RecordID={0}". The datagrid will automatically
replace the {0} with the RecordID from the current row of the datagrid
control.

HTH,
Jorge

"I am Sam" wrote:
I need to pass an id from one record to a different page. The ID is in a
Datagrid and I want to pass the record to another page. Example:
http://www.domain.com?RecordID=2
the parameter I want to pass is RecordID with a value 2.

How would I send the RecordID from a datagrid?

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Newbie | last post: by
4 posts views Thread by Lan H. Nguyen | last post: by
6 posts views Thread by FoundThisOnline | last post: by
2 posts views Thread by rn5a | last post: by
6 posts views Thread by tshad | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.