I am doing a Response.Redirect to below given xml document with a query string parameter.
Response.Redirect(@"../temp/output.xml?location=newlocation"); What I want is that the value of location attribute should be replaced with the value I pass in query string parameter. The problem is when I do a response.redirect to xml the c# server code which modifies the xml document does not executes for the obvious reason that xml file does not runs any server code.
Can anyone please suggest a solution for this.
Xml File
<?xml version="1.0" encoding="utf-8"?> <products xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="products:noNamespaceSchemaLocation"> <store id="BND088412"> <display-name>test</display-name> </store> <product location="test"> <length units="minutes">100</length> <title>Microsoft Excel</title> </product> <product location="test"> <length units="minutes">300</length> <title>Microsoft VBA</title> </product> </products> Thanks & Regards
No comments:
Post a Comment