473,513 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Aug 29 '08 #1
0 1126

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2158
by: Tomas | last post by:
Is there any sequence diagram on the web that clearly shows in which order all Page methods (load, render and so on) are being called compared to the order the page's contained control methods are...
2
1313
by: Andrea Williams | last post by:
I have a form where the user chooses reporting options and when submit is clicked, I need to present them with dynamically created excel file. In Classic ASP I would just change the viewing...
4
4201
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where...
5
1758
by: sk | last post by:
Hi, I'm trying to override the Render method of my Page class. Are there any standard guidelines for this? Thanks. Shardul
2
1585
by: Tony | last post by:
I have a very peculiar problem that I am hoping someone can point me in the right direction on. I have an asp.net page that displays a virtual paycheck to a user. One asp.net page calls another...
3
5148
by: John Hughes | last post by:
I'm trying to add a user control to a form via the pages render method and I get the following error : "Control 'Button1' of type 'Button' must be placed inside a form tag with runat=server" ...
1
4094
by: Kevin R | last post by:
This is one of the weirdest problems I have ever run into. I have had to trim down a bunch of code to give a sample that is more easily readable by those who will view this. Here is the problem:...
0
1023
by: Raghu | last post by:
Hi All, I am building Report application using ASP.Net and C#. The report will be shown to the user in aspx page. The report inputs are taken at runtime like columns user wants to see and...
13
3517
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
2
1465
by: Just Me | last post by:
Does anyone know if one can get to a representation of the rendered page ( after ) render. ?
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.