473,406 Members | 2,894 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,406 software developers and data experts.

myDataSet.ReadXml(Server.MapPath("books.xml"))

ae
is the prope way to read xml files, as long as they are on my server, but how
do i access them from other sites, such as http://www.site.com/xmltoread.xm
Nov 19 '05 #1
1 1890
ae wrote:
is the prope way to read xml files, as long as they are on my server, but how
do i access them from other sites, such as http://www.site.com/xmltoread.xm


You can pull it into an XmlDocument or XmlTextReader, for example, by
providing a remote URL in the constructor. See this article for a demo:
http://aspnet.4guysfromrolla.com/articles/031903-1.aspx

Or you can pull it down locally using the WebClient class. For
information on grabbing remote content over an HTTP request from an
ASP.NET page (such as an XML file), check out:
http://www.4guysfromrolla.com/webtech/070601-1.shtml

hth
--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell
Nov 19 '05 #2

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

Similar topics

3
by: David | last post by:
I'm rewriting a vb client app to C# and need to convert: "If Not myDataSet Is Nothing Then" I can't seem to get the syntax right for this one... What would such a thing look like in C#?
11
by: Steve Hoyer | last post by:
I am trying to deploy my first asp.net app to our webserver (2K server, IIS 5) My start page comes up and you can get to the subsequent pages that are tied into our sql server (2K). Each page...
0
by: Nir Amber via DotNetMonster.com | last post by:
I cant seem to get the databse to update the tables. i get the following error "System.InvalidOperationException: Missing the DataColumn 'description' in the DataTable 'Transactions' for the...
0
by: Evelin | last post by:
Hi, I use ASP.NET and my problem is I´ve two buttons, a dataSet, a dataGrid and a sqlDataAdpater, I use sqlDataAdapter.fill(dataSet,"dbTable"), then when when the user press the first button, I...
7
by: CanoeGuy | last post by:
I have been trying for the last two weeks to display a dynamic DataGrid. The data that I'm pulling from a SQL Server DB will have whole columns that will be either NULL or 0. I want to display...
3
by: Geraldine Hobley | last post by:
Hello, In my project I am inheriting several forms. However when I inherit from a form and add additional subroutines and methods to my inherited form I get all sorts of problems. e.g. I sometimes...
0
by: Deepak C.G via .NET 247 | last post by:
I want to dispose the image object in my child form, unless I won't dispose this object i can't delete the image file in my folder. I get this error in MDIparent form "An unhandled exception...
1
by: Livrish | last post by:
Hey I have having a problem Deserializing a dataset. When I try to deserialize it (See below for my test code) I get the following exception {"Item has already been added. Key in dictionary:...
0
by: sennopati | last post by:
Dude! I created datagridview object and put one procedure and use one event in my form. The PRocedure SaveRecord have command like this: Mybindingsource.endedit() if MyDataSet.haschange then...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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,...
0
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...
0
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
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,...

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.