I have a grid with a hyperlink to a network folder. The location is constructed in a query based on some information that SHOULD be correct, but there are mistakes made by the end-users and the hyperlink on occasion will be correct.
For each row, I would like to somehow handle that hyperlink if the network folder does not exist. Either there will be no link to click or popup a message that informs the user the network folder does not exist.
I figure I would likely use System.IO.Directory.Exists, but I am clueless as to how to implement that. I have made some attempts and searched for a solution, but have not come up with anything that works for me.
Thank you!
<telerik:GridTemplateColumn ColumnGroupName="DLB" UniqueName="Location" Display="True" HeaderText="Files" > <ItemTemplate> <a href="<%# Eval("Location")%>" target="_blank">Open folder</a> </ItemTemplate></telerik:GridTemplateColumn>For each row, I would like to somehow handle that hyperlink if the network folder does not exist. Either there will be no link to click or popup a message that informs the user the network folder does not exist.
I figure I would likely use System.IO.Directory.Exists, but I am clueless as to how to implement that. I have made some attempts and searched for a solution, but have not come up with anything that works for me.
Thank you!
