User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,624 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1561 | Replies: 3
Reply
Join Date: Dec 2006
Posts: 18
Reputation: nephros is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
nephros's Avatar
nephros nephros is offline Offline
Newbie Poster

Help Asp+xml+mssql

  #1  
Dec 15th, 2006
I need to complete a task, although I am not quite sure how?

The task is to create a very unusual search system for a car rental site.

There is a database of cars that the rental company possesses, and when the user specifies the rental dates - the list of available cars should be presented to the user. But the thing is that they should be presented in the XML format using XSLT transformation.

The question is:
How to transform database search results into a structured XML document and present it on an ASP.NET webform?

All suggestions are welcome, if you need some more specific info, feel free to ask.

Thank you!
NOW is the hour
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Posts: 26
Reputation: chmonalisa is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
chmonalisa chmonalisa is offline Offline
Light Poster

Re: Asp+xml+mssql

  #2  
Jan 2nd, 2007
hey buddy,

try this

open a sqlcommand object and execute your search query.
take those results in a dataadapter and assign to a dataset
then load the dataset to an xmlfile. you can do that. it's easy.
Finally using response.binarywrite u can flush the xml content to your browser.

thx
chaitanya
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Asp+xml+mssql

  #3  
Jan 15th, 2007
You shouldn't send an XML file with a linked transform directive directly to the user's browser. Not all browsers support client-side XSL transformations.

You should look for a server-side XSL processor, perform the transformation at the server end, and send (X)HTML.

There should be an ASP-ready XSL processor on Windows Servers based on MSXML (www.perfectxml.com/articles/xml/XSLTInMSXML.asp . See if it's on your server, if not, ask for/install it.

That's the same processor used by MSIE for client-side transforms; doing the process at your server though, means that you can serve to browsers other than MSIE and FF.
Last edited by MattEvans : Jan 15th, 2007 at 5:58 am.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Dec 2006
Posts: 18
Reputation: nephros is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
nephros's Avatar
nephros nephros is offline Offline
Newbie Poster

Re: Asp+xml+mssql

  #4  
Jan 17th, 2007
Thanks to everyone for the replies !
NOW is the hour
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 9:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC