Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - render xml page

Reply
 
Old 08-29-2008   #1 (permalink)
support


 
 

render xml page

I can't seem to find the appropriate help page for this simple problem.
I have a web page, e.g.
http://people-places-work.info/showCelebrities.aspx
and create the xml (by hitting the "Export as XML" )
but want to display that page, rather than store it on my HD.
Does anyone know how that should be done?
I have tried just
Response.Write(xmlPPW);
which is a bit better, although my xml tags are not showing up.
Should I save a temp file and then redirect to it?
Right now, the source code is
------------showCelebrities.aspx ----------
.......
<asp:FileUpload ID="FileUploadXml" runat="server" ToolTip="select filename
to download" />
<asp:Button ID="ButtonExportXML" runat="server"
OnClick="ButtonExportXML_Click" Text="Export as XML"
ToolTip="To PDA app" />
<asp:Label id="LabelXml" runat="server" />
.....
-------------eof
------------showCelebrities.aspx.cs ----------
protected void ButtonExportXML_Click(object sender, EventArgs e)
{
int irc = 0;
String outStr = "";
try
{
// export data to xml file on user's local disk
String xmlPPW = dtCelebrities.DataSet.GetXml().Normalize();
if (FileUploadXml.HasFile)
{
//Uncomment this line to Save the uploaded file
String stFileWPath = FileUploadXml.FileName;
//FileUploadXml.SaveAs("C:\\"+ stFileWPath);
//Response.OutputStream.Read( xmlPPW);
LabelXml.Text = "Saved " + FileUploadXml.FileName + " Content Type " +
FileUploadXml.PostedFile.ContentType + " Length " +
FileUploadXml.PostedFile.ContentLength;
Response.Write(xmlPPW);
}
else
{
LabelXml.Text = "No uploaded file";
}
}
catch (Exception ex)
{
irc = -9934;
outStr += ("showCelebrities::ButtonExportXML_Click<br />Exception ex=" +
ex.Message + "<br />");
Response.AppendToLog(outStr);
}
}
.....
-------------eof



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
AMD Fusion Render Cloud Vista News
CS1.6 can only run as software render under vista RC1? Vista Games


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46