K
Ken
Hi,
I´m creating an Hyperlink dynamically for my DataGrid:
HyperLink hl = new HyperLink();
hl.Text = "MyLink";
hl.NavigateUrl = "#";
e.Item.Cells[3].Controls.Add(hl);
When the user clicks that HyperLink, instead of sending to an specified URL
in the
NavigateUrl, example : hl.NavigateUrl = http://www.site.com; I want to
'catch' the
click event and call a Method instead
private void MyMethod()
{
// do something here!
}
Any ideas for that?
Ken.
I´m creating an Hyperlink dynamically for my DataGrid:
HyperLink hl = new HyperLink();
hl.Text = "MyLink";
hl.NavigateUrl = "#";
e.Item.Cells[3].Controls.Add(hl);
When the user clicks that HyperLink, instead of sending to an specified URL
in the
NavigateUrl, example : hl.NavigateUrl = http://www.site.com; I want to
'catch' the
click event and call a Method instead
private void MyMethod()
{
// do something here!
}
Any ideas for that?
Ken.