Input XML Output RSS aspx asp.net

2010-08-06  来源:本站原创  分类:DotNet  人气:259 

. Aspx page, leaving only:

<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "ShopListXML.aspx.cs" Inherits = "ShopListXML"%>
Rest deleted

At. Aspx.cs

protected void Page_Load (object sender, EventArgs e)
(
Response.ContentType = "text / xml"; / / Set the appropriate type is mainly here
Response.Charset = "UTF-8";
Response.Write ("<? Xml version = \" 1.0 \ "encoding = \" UTF-8 \ "?>");
Response.Write ("<rss version=\"2.0\"> <channel>");

Response.Write (GetUserRSS ());
Response.Write ("</ channel> </ rss>");

)

private string GetUserRSS ()
(
StringBuilder strRss = new StringBuilder ();
strRss.Append ("<title> lbk </ title>");
strRss.Append ("<link> lbk.cnblogs.com </ link>");
strRss.Append ("<description> Oh, my </ description>");
strRss.Append ("<language> zh-cn </ language>");
strRss.Append ("<generator> www.xiaoqian.cn </ generator>");
return strRss.ToString ();
)

相关文章
  • Input XML Output RSS aspx asp.net 2010-08-06

    . Aspx page, leaving only: <% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "ShopListXML.aspx.cs" Inherits = "ShopListXML"%> Rest deleted At. Aspx.cs protected void Page_Load (object sender, Even

  • linux shell script to re-set input and output 2010-10-20

    Transfer from: http://blog.csdn.net/wenrenhua08/archive/2010/09/02/5857347.aspx Shell script has recently been busy studying, I feel learned a lot, to share this with you. Script iout.sh #!/bin/sh SHDIR="$(dirname -- $(readlink -f -- "$0"))

  • Input and output streams of Java 2010-11-17

    Java language input and output function is very powerful and flexible, fly in the ointment is that the code looks input and output is not very simple, because you often need to package a number of different objects. In the Java class libraries, IO pa

  • JavaScript input and output 2008-11-29

    A simple input and output examples In the JavaScript can be very easy to achieve input and output information, and interact with the user. 1, JavaScript input information provided through the use of JavaScript in the window object method prompt (), w

  • Combination of input and output stream (Classic) 2009-08-02

    Input and output types BufferedInputStream input-output optimization for the implementation of the intermediate conversion CheckedInputStream maintain data checks and CipherInputStream encryption / decoding data DataInputStream basic types of treatme

  • Fully conversant with java input and output streams 2010-01-05

    Java language input and output function is very powerful and flexible, fly in the ointment is that the code looks input and output is not very simple, because you often need to package a number of different objects. In the Java class library, IO part

  • Java io input and output stream and character sets 2008-07-12

    Java io input and output stream and character set description Annex! PPT file ... ...

  • C language input and output files 2010-03-17

    File read and write 1. Fputc function and fgetc () function (putc function and getc () function) 1.fputc function Put up a character written to disk file, call the form: fputc (ch, fp); successful output character, failure EOF (-1) 2.fgetc function R

  • java I / O input and output optimization 2010-04-04

    / * * A Input / output operations in Java may be very slow in the case of wrong usage. * * Here are some rules which should be followed to avoid input / output performance problems: * Scanner is suitable to read input data for the most of problems, *

  • Windows platform erlang the port process to close the standard input and output 2010-06-26

    In order to avoid the process of communication with the port number printf debugging information by the impact, usually have to close or replace the standard input and output. Unix platform, open_port as long as the parameters specified nouse_stdio p

  • Windows platform, the process of closing the standard erlang the port input and output method 2010-06-26

    In order to avoid the process of communication with the port number printf debugging information by the impact, usually have to close or replace the standard input and output. Unix platform, open_port as long as the parameters specified nouse_stdio p

  • Java input and output stream Overview 2010-07-07

    Java language input and output functions are very powerful and flexible, fly in the ointment is the input and output of the code seems not very simple, because you often need to package a number of different objects. In the Java class libraries, IO p

  • RHCE course-RH033Linux base notes of frequently used text processing commands 5. Input and output redirection. Pipeline 2010-07-16

    RHCE Course - Part 5 primary, frequently used text processing commands, input and output redirection, pipe Today, an order based mainly, though not common technical content of the order, but there are technical content based on the order ordinary Cat

  • [Change] ACM novice of the eight input and output format 2010-07-23

    In ACM question bank, regardless of the file output (input) or standard output (input), all have a certain format, following me to Hangzhou Electric 1089 - 1096 as an example, a brief introduction. The first: A + B for Input-Output Practice (I) [Ente

  • [Change] ACM novices of the eight input and output formats 2010-07-23

    In ACM question bank, regardless of the file output (input) or standard output (input), all have a certain format, following me to Hangzhou Electric 1089 - 1096 as an example, a brief introduction. The first: A + B for Input-Output Practice (I) [Ente

  • IO system input and output streams 2010-08-17

    The concept of stream flow: java classes in the input and output related to the java.io package, java will abstract a stream input and output. Input stream is from somewhere in the program (files, network) used to read data; the output data stream is

  • grep sed find xargs gawk input and output, etc. 2010-08-25

    Regular Expressions \, Respectively, the beginning and end of words ex: \ to T or t at the beginning, om the end of the word regular expression meta-character set: 1) ^ line of the first / ^ love / to love at the beginning of the line; 2) $ end of li

  • 005shell input and output 2010-08-27

    In the shell script can be used in several different ways to read data: You can use the standard input - the default for the keyboard, or specify a file as input. The output is the same: If you do not specify a file as output, standard output is alwa

  • java architecture in the input and output streams 2010-10-06

    I / O class name suggests is the input and output stream classes (input / output), flow is the program and outside the channel for data exchange's performance in OOP. According to the direction of flow can be divided into input and output streams. 1,

  • Linux input and output redirection and pipes 2011-01-03

    Standard input and output We know that executing a shell command line, it automatically opens three standard document, the standard input file (stdin), usually corresponding to the terminal keyboard; standard output file (stdout) and standard error o