How to open XML file from a ASP Hyperlink control

Joined
Sep 23, 2010
Messages
1
Reaction score
0
How can I open a XML file from ASP.Net page using Hyperlink server control? I have the path for this xml file in Web.Config. I tried the following code in my code-behind file:

Code:
hypLink.Text = "Transformed XML";
hypLink.NavigateUrl = ConfigurationSettings.AppSettings["OutputXML"];

The path in configuration file is:
<add key="OutputXML" value="C:\Working\MyTest\XMLTransform\App_Data\Transformed.xml"/>
 

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,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top