ASP.NET 1.0 and 1.1 BasicsASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
When using the datagrid to dispaly data and as a navigator to a seperate page this problem comes.
this is because we can specify only one filed as the DataNavigateUrlField. Upto my knowledge the solution is to keep two datagrids seperately as parent and child.
do you have any comments!!!
ex:
Table 1 -> Primery key = Key1+Key2
so how are you going to use a asp:HyperLinkColumn to navigate to another page, say for edit!!!.
You could use a template column and manually construct the URL with all the keys you need in the querystring.
Alternatively, as much as it pains DB people to hear it, you could create an identity or guid column to uniquely identify each row and use that as your single row identifier for the purpose of a single argument URL in the hyperlinkcolumn.
Peter
------------------------------------------------------
Work smarter, not harder.
Sure, you could certainly build the querystring in the data query. If you needed to also use the data from multiple columns that you are putting in the querystring you could just select those columns again by themselves.
Peter
------------------------------------------------------
Work smarter, not harder.