Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
ASP.NET very urgent question?
Can any one help me understand where the value for the format substring {0} come form, for this particular code peice.
<Columns>
<asp:HyperLinkColumn
HeaderText="Select an Item"
DataNavigateUrlField="IntegerValue"
DataNavigateUrlFormatString="detailspage.aspx?id={0}"
DataTextField="PriceValue"
DataTextFormatString="{0:c}"
Target="_blank"/>
</Columns>
1 Answer
- Anonymous1 decade agoFavorite Answer
It gets the value from the first datagrid column which has an index of 0. If you look at the server side code you'll see that your datagrid gets two columns added to it. The first one is some sort of id of type integer. Once the data is binded to the datagrid you can access it using the column ID eg zero for first one, 1 for the next and so on.
hope this helps
Source(s): .net developer