Click here to Skip to main content
16,018,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question.NET Best Architecture!!!? Pin
cloudking1196630-Oct-06 18:42
cloudking1196630-Oct-06 18:42 
AnswerRe: .NET Best Architecture!!!? Pin
just3ala231-Oct-06 1:36
just3ala231-Oct-06 1:36 
AnswerRe: .NET Best Architecture!!!? Pin
minhpc_bk31-Oct-06 13:41
minhpc_bk31-Oct-06 13:41 
GeneralRe: .NET Best Architecture!!!? Pin
cloudking119661-Nov-06 19:08
cloudking119661-Nov-06 19:08 
QuestionHow to download text file on client system Pin
asprajesh30-Oct-06 18:15
asprajesh30-Oct-06 18:15 
QuestionAccessing Global Objects in User Controls Pin
GregStevensCA30-Oct-06 13:34
GregStevensCA30-Oct-06 13:34 
AnswerRe: Accessing Global Objects in User Controls Pin
minhpc_bk30-Oct-06 13:50
minhpc_bk30-Oct-06 13:50 
QuestionReturn XML. Please, need help. Thanks. Pin
shapper30-Oct-06 13:26
shapper30-Oct-06 13:26 
Hello,

For the past hours I have been trying to solve a problem which is driving me crazy.

I have to different codes where the problem to solve is the same:

CODE 1 (Transforms a XML document using a XSL file):

Function Trans()
Dim doc As XmlDocument = New XmlDocument
doc.Load("doc.xml")
Dim docXsl As XslCompiledTransform = New XslCompiledTransform
docXsl.Load("doc.xsl")
docXsl.Transform(doc, Nothing, HttpContext.Current.Response.Output)
End Function


CODE 2 (Creates XML)

Function Create()
Dim doc As XmlTextWriter = New XmlTextWriter(Response.OutputStream, Encoding.UTF8)
...
doc.WriteStartElement("item")
doc.WriteElementString("title", "My Title")
doc.WriteEndElement()
...
doc.Flush()
doc.Close()
End Function


I don't want to display the XML files. I don't want to save the XML files.

I want to return the XML created from each function.
Then outside of each function I want to display the XML in the browser.

Yes, I read about stream or using a string.
But I was not able to make this work.

Could someone please help me out?
Please, give me a code example.

Thank You Very Much,
Miguel
AnswerRe: Return XML. Please, need help. Thanks. Pin
minhpc_bk30-Oct-06 13:54
minhpc_bk30-Oct-06 13:54 
Questionproblem in writing client side script from code behind. Pin
Renukapadhamanaban30-Oct-06 12:43
Renukapadhamanaban30-Oct-06 12:43 
AnswerRe: problem in writing client side script from code behind. Pin
minhpc_bk30-Oct-06 13:59
minhpc_bk30-Oct-06 13:59 
GeneralRe: problem in writing client side script from code behind. Pin
Renukapadhamanaban30-Oct-06 15:30
Renukapadhamanaban30-Oct-06 15:30 
AnswerRe: problem in writing client side script from code behind. Pin
Parwej Ahamad30-Oct-06 20:37
professionalParwej Ahamad30-Oct-06 20:37 
GeneralRe: problem in writing client side script from code behind. Pin
Renukapadhamanaban31-Oct-06 12:21
Renukapadhamanaban31-Oct-06 12:21 
GeneralRe: problem in writing client side script from code behind. Pin
Parwej Ahamad31-Oct-06 16:03
professionalParwej Ahamad31-Oct-06 16:03 
Questionassembly in .net Pin
saravanan0530-Oct-06 11:32
saravanan0530-Oct-06 11:32 
AnswerRe: assembly in .net Pin
minhpc_bk30-Oct-06 14:00
minhpc_bk30-Oct-06 14:00 
QuestionClasses in asp.net Pin
greekius30-Oct-06 11:03
greekius30-Oct-06 11:03 
AnswerRe: Classes in asp.net Pin
minhpc_bk30-Oct-06 14:02
minhpc_bk30-Oct-06 14:02 
GeneralRe: Classes in asp.net Pin
greekius30-Oct-06 20:39
greekius30-Oct-06 20:39 
GeneralRe: Classes in asp.net Pin
minhpc_bk31-Oct-06 0:24
minhpc_bk31-Oct-06 0:24 
QuestionSession_end and variables Pin
eggsovereasy30-Oct-06 10:25
eggsovereasy30-Oct-06 10:25 
AnswerRe: Session_end and variables Pin
Guffa30-Oct-06 11:17
Guffa30-Oct-06 11:17 
Questionlocking computer through asp.net Pin
aseef30-Oct-06 9:47
aseef30-Oct-06 9:47 
AnswerRe: locking computer through asp.net Pin
ToddHileHoffer30-Oct-06 9:56
ToddHileHoffer30-Oct-06 9:56 

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.