I have the following case:
I store a specific path in my web.config file like this:
<add key="pdfPath" value="domainName/aa/pdf/"/>
and I want to eval this value in my hyperlink in my DetailsView:
<asp:TemplateField HeaderText="pdf file">
<asp:HyperLink ID="hl_link" runat="server" NavigateUrl='<%#Eval("thevaluefromConfigfile")%>'><%#Eval("filename") %></asp:HyperLink>
</asp:TemplateField>
-
How do I read the value from my configuration file?
-
I want this link to open in a new window. Is the hyperlink the best
choice?
Use a A tag instead
how to read the key: