ASP.net: how to render xml content as partial view
3 posters
Page 1 of 1
ASP.net: how to render xml content as partial view
I want to display a xml string (suppose formatted) "as it is" in a partial view. That means, the output should contain the tags.
Like this:
Like this:
- Code:
<test att = "1">
TEXT
</test>
Last edited by BIT0102-Mohaimin on Mon Aug 15, 2011 2:28 am; edited 1 time in total (Reason for editing : Marked Solved)
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: ASP.net: how to render xml content as partial view
in partial view? You mean the partial view in visual studio?
Or you mean you want to view the code in a asp.net page as code?
Or you mean you want to view the code in a asp.net page as code?
Re: ASP.net: how to render xml content as partial view
I did not understand your question. I want to display a partial view returned by an action method.BIT0122-Amit wrote:in partial view? You mean the partial view in visual studio?
Or you mean you want to view the code in a asp.net page as code?
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: ASP.net: how to render xml content as partial view
Have you tried using the escape characters for XML? I mean, if you want to print a <, did you tried with & l t; (without the spaces)?
I didn't try this but this should work.
Here's a list of XML escape sequences.
I didn't try this but this should work.
Here's a list of XML escape sequences.
BIT0130-Shakkhor- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 209
Points : 328
Re: ASP.net: how to render xml content as partial view
Thanks everyone. The problem was solved.
I am using an iframe to display the xml.
iframe is treated as just like a browser. You may have opened an xml file in browser. It looks exactly the same in an iframe.
I am using an iframe to display the xml.
iframe is treated as just like a browser. You may have opened an xml file in browser. It looks exactly the same in an iframe.
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: ASP.net: how to render xml content as partial view
I see. Good to know
Can you provide a sample code so that our readers can grasp even better idea?
Maybe you can use the solved icon in this topic
Can you provide a sample code so that our readers can grasp even better idea?
Maybe you can use the solved icon in this topic
Similar topics
» View CHM in Ubuntu
» iitduforum view changed
» Assignment on view serializability
» BIT01: Urgent notice about Internship -Submission of CV -updated. Please view this.
» iitduforum view changed
» Assignment on view serializability
» BIT01: Urgent notice about Internship -Submission of CV -updated. Please view this.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford