473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Displaying XML

There have been lots of posts on this topic, but I haven't been able
to apply any of the suggestions to my situation.

I have an .aspx page with a form on it that has several submit buttons
on it. Clicking a button will cause a web service action that returns
XML. I would like to display this XML response on the page with the
form. I know I can display XML in an IFRAME by pointing its source to
an XML file. But I'm streaming the XML dynamically. I also saw a
suggestion to have the IFRAME's src point to the aspx page that loads
the XML. Again, that won't work because I'm displaying the response
to a form action in the IFRAME.

If someone could give me an example or pointers to displaying XML in
an IFRAME (or any other way) on a page with a form in response to a
form action, I would appreciate it. BTW, when I say "displaying XML",
I mean having IE render it the same as if you open an XML file
directly in IE.

Thanks,
Carole
Nov 12 '05 #1
2 3412
> I also saw a
suggestion to have the IFRAME's src point to the aspx page that loads
the XML. Again, that won't work because I'm displaying the response
to a form action in the IFRAME.
Actually, that will work, as long as you set the Response.ContentType of the
ASPX page to "text/xml". Because the file requested has an .aspx extension,
you must inform the browser that it is not HTML, but XML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Carole MacDonald" <el*****@yahoo.com> wrote in message
news:1a**************************@posting.google.c om... There have been lots of posts on this topic, but I haven't been able
to apply any of the suggestions to my situation.

I have an .aspx page with a form on it that has several submit buttons
on it. Clicking a button will cause a web service action that returns
XML. I would like to display this XML response on the page with the
form. I know I can display XML in an IFRAME by pointing its source to
an XML file. But I'm streaming the XML dynamically. I also saw a
suggestion to have the IFRAME's src point to the aspx page that loads
the XML. Again, that won't work because I'm displaying the response
to a form action in the IFRAME.

If someone could give me an example or pointers to displaying XML in
an IFRAME (or any other way) on a page with a form in response to a
form action, I would appreciate it. BTW, when I say "displaying XML",
I mean having IE render it the same as if you open an XML file
directly in IE.

Thanks,
Carole

Nov 12 '05 #2
> I also saw a
suggestion to have the IFRAME's src point to the aspx page that loads
the XML. Again, that won't work because I'm displaying the response
to a form action in the IFRAME.
Actually, that will work, as long as you set the Response.ContentType of the
ASPX page to "text/xml". Because the file requested has an .aspx extension,
you must inform the browser that it is not HTML, but XML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Carole MacDonald" <el*****@yahoo.com> wrote in message
news:1a**************************@posting.google.c om... There have been lots of posts on this topic, but I haven't been able
to apply any of the suggestions to my situation.

I have an .aspx page with a form on it that has several submit buttons
on it. Clicking a button will cause a web service action that returns
XML. I would like to display this XML response on the page with the
form. I know I can display XML in an IFRAME by pointing its source to
an XML file. But I'm streaming the XML dynamically. I also saw a
suggestion to have the IFRAME's src point to the aspx page that loads
the XML. Again, that won't work because I'm displaying the response
to a form action in the IFRAME.

If someone could give me an example or pointers to displaying XML in
an IFRAME (or any other way) on a page with a form in response to a
form action, I would appreciate it. BTW, when I say "displaying XML",
I mean having IE render it the same as if you open an XML file
directly in IE.

Thanks,
Carole

Nov 12 '05 #3

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

Similar topics

1
by: Waguih Boctor | last post by:
Hi, I have a number of ASP pages where some JPGs and GIFs are displaying in the browser and some are not. I have included an excerpt from the HTML below. In this example, the gif file at the...
8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
1
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time...
2
by: Joe Price | last post by:
Hi chaps I've got an XML file, within that file i've embedded html code using the <!]> tag I'm displaying that xml file through a browser using an xsl style sheet. However it is displaying...
1
by: Yoshitha | last post by:
hi I have datalist control in my ASP.NET application the problem here is i have used a textbox with multiline true propertly when i enter data like "fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd...
5
by: Robert | last post by:
Hello Accessors I have some reports created in Access that are very good for what they do. However, it seems to me that when you are displaying information you don't need to print out that a...
1
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
33
by: buss123 | last post by:
Hi all, combo box script code was working in IE perfectly with all modes but OnChange event was not working in FireFox(editable mode, if we select valuese that combo box values r...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.