473,698 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read in XML file, output to screen...

CDZ
This seems simple enough, Read an XML file, output it to the screen.
Yes, I know that doesn't make sense but here's why I need it:

I have a sharepoint list that I'm viewing the XML from, the URL is LONG
and ugly, it comes from a .dll file. Ex:
http://domain/site/_vti_bin/owssvr.dll?Cmd= Display&List={8 5C78153-FD44-4384-B8B9-8D1AD96975DC}&X MLDATA=TRUE

I just want to create an asp.net / c# page that reads in the url above
and outputs raw xml using the .aspx extension.

Can you help?
Thanks

Oct 20 '06 #1
1 3780
Hi,

CDZ wrote:
This seems simple enough, Read an XML file, output it to the screen.
Yes, I know that doesn't make sense but here's why I need it:

I have a sharepoint list that I'm viewing the XML from, the URL is LONG
and ugly, it comes from a .dll file. Ex:
http://domain/site/_vti_bin/owssvr.dll?Cmd= Display&List={8 5C78153-FD44-4384-B8B9-8D1AD96975DC}&X MLDATA=TRUE

I just want to create an asp.net / c# page that reads in the url above
and outputs raw xml using the .aspx extension.

Can you help?
Thanks
It would be better to use a ASHX custom handler to do this. By using an
ASHX, you avoid the whole overhead due to ASP.NET processing the request
and firing all the Page related events.

See this:
http://www.galasoft-lb.ch/mydotnet/a...006100601.aspx

Of course you can do that in an ASPX Page too, but then you need to
override the Render method, you must remove the call to base.Render, and
you must close the Response when you're done rendering the XML.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 20 '06 #2

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

Similar topics

40
61218
by: Abby | last post by:
My .dat file will contain information like below. /////////// First 0x04 0x05 0x06 Second 0x07
3
7954
by: Bo | last post by:
In my asp.net webservice application, I need to launch a DOS process as authorized users. To impersonate users, I use <impersonation = true> in my webconfig. I can't use Diagnostics.Process.Start, because it creates a child process using parent process token "System", not the impersonated thread token. I don't want to use CreateProcessWithLogonW, because my application impersonates different users and it is not a good idea to handle...
1
2383
by: PAPutzback | last post by:
My code Dim Cmd As New Process Dim CmdHandle As String Dim dirResults As String Cmd.StartInfo.FileName = "c:\working\gpg\gpg.exe" Cmd.StartInfo.Arguments = "--yes --output :\working\inbound\test.txt --decrypt c:\working\inbound\anstest.gpg" Cmd.StartInfo.RedirectStandardInput = True Cmd.StartInfo.RedirectStandardOutput = True Cmd.StartInfo.UseShellExecute = False
1
2388
by: MaTianyi | last post by:
the encoding of file that is output by the file.write() function is always None. and the encoding attribute of the File Object is readonly. f = open('abc.txt','w') print f.encoding how can I change the file output encoding?
2
2816
by: CDZ | last post by:
This seems simple enough, Read an XML file, output it to the screen. Yes, I know that doesn't make sense but here's why I need it: I have a sharepoint list that I'm viewing the XML from, the URL is LONG and ugly, it comes from a .dll file. Ex: http://domain/site/_vti_bin/owssvr.dll?Cmd=Display&List={85C78153-FD44-4384-B8B9-8D1AD96975DC}&XMLDATA=TRUE I just want to create an asp.net / c# page that reads in the url above and outputs raw...
2
3800
by: somequestion | last post by:
During copying file , wanna read file Size like this string CheckFileSize(string fileName) { if( fileName == null ) return; FileInfo fi = new FileInfo(fileName); return fi.Length.ToString(); } but it shows total file size...
2
2455
by: xplode144 | last post by:
I have a Web application. i need to read a file once during the startup and preserve the read data throughout the life of the application. i will to access the data often during the page_load of the default.aspx page. what is the best way to do so? do i need to implement a singlton object?
8
1628
by: jewel87 | last post by:
Hi, I have something strange going on with my file output function, everything seems correct, i've checked with all possible references on the topic, but it is not working, i.e. not doing anything, not even creating the file for output. I'm using C++ Builder 6, and here is the code: void Product :: OutputToFile() { fstream outputfile("data.txt", ios::app); outputfile<<ProductName.c_str() << "\n"
0
2691
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I started a thread regarding this issue, but now i'm facing new problem, so i'm starting a new thread, hope it's ok... anyway, using my c# windows application, i'm excuting and exe file (which is written in c++), this exe excute some batch files, and those batch file sometimes wait for user's input. i want to diplay the output of this exe on win32 form (textbox or something) and ask the user for input when i need it. the problem...
4
2938
by: DiffThinkr | last post by:
Hi, Is there anyway of saving and retrieving the output screen. I don't want to use the saved file outside the program but I need to be able to put the output that I saved back into output as it is. This is for a graphics application, by the way. I'm using Turbo c++.
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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 we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.