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

hyperlink

Fetch hyperlinkfield value on rowbound event
Tuesday, 31 January 2012 09:29
Add following as column to your grid view





Write following code on rowcommand event

HyperLink hyp = (HyperLink)Gridview1.Rows[Gridview1Row.RowIndex].Cells[columnEmployeeIndex].Controls[0];
emp = string.IsNullOrWhiteSpace(hyp.Text) ? 0 : Convert.ToInt32(hyp.Text);

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/NxJVM6tw4uk/14579

 
set text and navigate url property of hyperlink field using jacascript
Monday, 30 January 2012 07:50
// set text and navigate url property of hyperlink field using jacascript

var hyperlink = document.getElementById('<%= Hyperlink.ClientID %>');
hyp.innerHTML = 'My New Link';
hyp.href = 'http://snippets.dzone.com/'

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/Y6r2-FieP34/14549

 


Taxonomy by Zaragoza Online