Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2005, 05:27 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default IS There A Way TO Download Data F Sql To Xml File

Hi all,

Can Any Help To Show Me A way To Download Data From Sql Server To Xml File To The Client Side To Deal With It Using Microsoft Xml ActiveX Object.

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old March 19th, 2005, 01:36 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can use the dataset WriteXML method to generate an XML file, then use that with your ActiveX object.

 
Old March 21st, 2005, 02:11 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

i searched and i found that i have to use webservice to do functions over the xml file from client side . but how???

Ahmed Ali
Software Developer
 
Old March 22nd, 2005, 10:11 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

I once made a class for my table in sqlserver this class had some public

properties and then in webservice I populated it from my datasource(ADO.NET)

and returned it,then webservice serialized and displayed my object in XMl

format,I think you can return a dataset as well.

(U know there is no file to be saved on the client just to be displayed on the explorer!)

_____________
Mehdi.
software student.
 
Old April 28th, 2005, 09:22 AM
Authorized User
 
Join Date: Apr 2005
Location: , , United Kingdom.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

select * from categories for xml auto, elements

This will return an xml string. Then you can do whatever you like with it stick it in an XMl Object and fly it to the moon if you like. Though probably you wont be able to save it to the clients machine. Unless maybe in a cookie or session that this "ActiveX" object can pick up?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Relational SQL Data to XML - Vet SQL/ASP - New XML JimiTheJett XML 1 December 4th, 2008 06:06 PM
Force SQL to update the data from an xml file ivanv SQL Server 2005 0 April 23rd, 2007 04:07 AM
Download file that stored in sql server angshujit ASP.NET 2.0 Basics 8 February 22nd, 2007 06:37 AM
download data ("image") from SQL database problems alex9183 Classic ASP Databases 2 September 14th, 2006 09:02 AM
inserting some data from xml file to sql server ak Classic ASP XML 1 February 25th, 2004 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.