Asp+xml+mssql

Reply

Join Date: Dec 2006
Posts: 18
Reputation: nephros is an unknown quantity at this point 
Solved Threads: 0
nephros's Avatar
nephros nephros is offline Offline
Newbie Poster

Asp+xml+mssql

 
0
  #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
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 26
Reputation: chmonalisa is an unknown quantity at this point 
Solved Threads: 1
chmonalisa chmonalisa is offline Offline
Light Poster

Re: Asp+xml+mssql

 
0
  #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 Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Asp+xml+mssql

 
0
  #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 6:58 am.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 18
Reputation: nephros is an unknown quantity at this point 
Solved Threads: 0
nephros's Avatar
nephros nephros is offline Offline
Newbie Poster

Re: Asp+xml+mssql

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

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC