Setting target of hyperlinkcolumn programmatically

  • Thread starter Brian Barnes via .NET 247
  • Start date
B

Brian Barnes via .NET 247

I am having trouble determining if I can set the target property of a hyperlinkcolumn based on the contents of field in a returned SQL query that is bound to a datagrid.

In my SQL table I'm storing different words in a DocumentType field, but I would like the word "Link" to trigger the target to go to "_blank".

I've tried many ideas including the OnItemDataBound event and thought changing the contents of the field from "Link" to "_self" or "_blank" might work too. Anyone have any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top