Click here to Skip to main content
16,010,394 members
Home / Discussions / Web Development
   

Web Development

 
QuestionIn 100 words or less? Pin
10-Feb-02 5:41
suss10-Feb-02 5:41 
AnswerRe: In 100 words or less? Pin
Mazdak10-Feb-02 6:08
Mazdak10-Feb-02 6:08 
AnswerRe: In 100 words or less? Pin
Paul Watson10-Feb-02 23:07
sitebuilderPaul Watson10-Feb-02 23:07 
Generaloutputing random records from database Pin
9-Feb-02 13:11
suss9-Feb-02 13:11 
GeneralRe: outputing random records from database Pin
Konstantin Vasserman9-Feb-02 14:08
Konstantin Vasserman9-Feb-02 14:08 
GeneralAccessing a .ASP file but returning a .XML file Pin
Paul Watson9-Feb-02 0:31
sitebuilderPaul Watson9-Feb-02 0:31 
GeneralRe: Accessing a .ASP file but returning a .XML file Pin
Konstantin Vasserman9-Feb-02 5:28
Konstantin Vasserman9-Feb-02 5:28 
GeneralRe: Accessing a .ASP file but returning a .XML file Pin
Paul Watson10-Feb-02 2:39
sitebuilderPaul Watson10-Feb-02 2:39 
Konstantin Vasserman wrote:
Browser does not expect any particular type in response to its request. Instead server has to specify what type of document it is sending in the header of the response. You can send anything in response to http://www.paulwatson.com/default.asp. In order to change the type you have to do something like this:

Response.ClearResponse.ContentType = "MIME TYPE OF YOUR CHOICE"Response.Write myDataResponse.End



Thank you very much Konstantin, that was exactly what I was looking for Big Grin | :-D

Funnily enough I thought the same way as you. But if the browser navigates to an .asp and you try and return an XML file it simply spits out the "text" version of the XML file, not a "real" version of the XML file as it was "expecting" HTML back, not XML. It is hard to explain but try using an XSL file to transform an XML doc into another XML doc on the server side and then return it to the browser via asp. It does not do what you would think.

But your code works brilliantly, thank you! Smile | :)

Thanks for the other reply, you actually got it right first time Smile | :)

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

Sonork ID: 100.9903 Stormfront
GeneralRe: Accessing a .ASP file but returning a .XML file Pin
Konstantin Vasserman9-Feb-02 6:14
Konstantin Vasserman9-Feb-02 6:14 
Generalasp.net controls won't appear Pin
8-Feb-02 20:49
suss8-Feb-02 20:49 
GeneralRe: asp.net controls won't appear Pin
Konstantin Vasserman9-Feb-02 5:17
Konstantin Vasserman9-Feb-02 5:17 
GeneralRe: asp.net controls won't appear Pin
Peter Marino26-Feb-02 23:33
Peter Marino26-Feb-02 23:33 
GeneralRe: asp.net controls won't appear Pin
Konstantin Vasserman27-Feb-02 2:28
Konstantin Vasserman27-Feb-02 2:28 
QuestionCode is not processed! Why? Pin
8-Feb-02 18:33
suss8-Feb-02 18:33 
AnswerRe: Code is not processed! Why? Pin
James T. Johnson8-Feb-02 19:51
James T. Johnson8-Feb-02 19:51 
GeneralRe: Code is not processed! Why? Pin
8-Feb-02 22:34
suss8-Feb-02 22:34 
GeneralRe: Code is not processed! Why? Pin
Paul Watson9-Feb-02 0:19
sitebuilderPaul Watson9-Feb-02 0:19 
GeneralRe: Code is not processed! Why? Pin
Roman Dymov9-Feb-02 17:18
Roman Dymov9-Feb-02 17:18 
GeneralReadWriteControlDesigner Pin
8-Feb-02 9:36
suss8-Feb-02 9:36 
Generaliis Pin
meirav8-Feb-02 4:58
meirav8-Feb-02 4:58 
GeneralRe: iis Pin
Mazdak8-Feb-02 13:26
Mazdak8-Feb-02 13:26 
GeneralRe: iis Pin
meirav8-Feb-02 18:27
meirav8-Feb-02 18:27 
GeneralRe: iis Pin
Mazdak8-Feb-02 19:20
Mazdak8-Feb-02 19:20 
GeneralRe: iis Pin
meirav8-Feb-02 22:15
meirav8-Feb-02 22:15 
GeneralRe: iis Pin
Mazdak8-Feb-02 22:57
Mazdak8-Feb-02 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.