Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

hyperlinkgvrows[gvrowrowindex]cells[testlinkcolumnindex]controls[0] viewstatelinkdata

get the value of hyperlink filed in asp.net
Monday, 30 January 2012 07:48
// get the value of hyperlink filed in asp.net


DataNavigateUrlFields="TestId" DataNavigateUrlFormatString="~/Test.aspx?TestId={0}" />

HyperLink hypTestLink = (HyperLink)Gv.Rows[gvRow.RowIndex].Cells[testLinkcolumnindex].Controls[0];
ViewStateLinkData = string.IsNullOrWhiteSpace(hypTestLink .Text) ? 0 : Convert.ToInt32(hypTestLink .Text);

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/kE508u3uWHY/14547

 


Taxonomy by Zaragoza Online