M
Matthias S.
Hi,
I've got a DataGrid which is displayed within a CustomerDetails page.
The CustomerDetails data (including the data for the grid) is loaded
using a QueryString (Item CustomerID) which is passed to this aspx page.
The hyperlink column looks like this:
<asp:hyperlinkcolumn datanavigateurlfield="ID"
datanavigateurlformatstring="AdCampaignDetails.aspx?CampaignID={0}"
datatextfield="Title" headertext="Title"></asp:hyperlinkcolumn>
My problem is, I'd like to pass not only the the CampaignID to the
AdCampaignDetails page, but also the CustomerID so that the resulting
DataNavigateURLFormatString should look like:
"AdCampaignDetails.aspx?CustomerID=8&CampaignID={0}"
As mentioned above, the CustomerID is passed to the CustomerDetails.aspx
page.
Q: Can I specify multiple string.Format params in the
DataNavigateURLFormatString? If so, how do I specify the data filled in?
I've been looking at the DataGrids Columns collection to see if I can do
it that way, but no success. Any help?
Thanks in advance!
I've got a DataGrid which is displayed within a CustomerDetails page.
The CustomerDetails data (including the data for the grid) is loaded
using a QueryString (Item CustomerID) which is passed to this aspx page.
The hyperlink column looks like this:
<asp:hyperlinkcolumn datanavigateurlfield="ID"
datanavigateurlformatstring="AdCampaignDetails.aspx?CampaignID={0}"
datatextfield="Title" headertext="Title"></asp:hyperlinkcolumn>
My problem is, I'd like to pass not only the the CampaignID to the
AdCampaignDetails page, but also the CustomerID so that the resulting
DataNavigateURLFormatString should look like:
"AdCampaignDetails.aspx?CustomerID=8&CampaignID={0}"
As mentioned above, the CustomerID is passed to the CustomerDetails.aspx
page.
Q: Can I specify multiple string.Format params in the
DataNavigateURLFormatString? If so, how do I specify the data filled in?
I've been looking at the DataGrids Columns collection to see if I can do
it that way, but no success. Any help?
Thanks in advance!