is.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void Button1_Click(object sender, System.EventArgs e)
{
string temp=TextBox1.Text;
TextBox1.Text="<musics firstRun=\"1\">";
TextBox1.Text+=temp;
TextBox1.Text=TextBox1.Text.Replace("<Asx Version=3.0>","");
TextBox1.Text=TextBox1.Text.Replace("<Param Name=\"AllowShuffle\" Value=\"yes\"/> ","");
TextBox1.Text=TextBox1.Text.Replace("</Asx>","");
TextBox1.Text=TextBox1.Text.Replace("</Entry>","");
TextBox1.Text=TextBox1.Text.Replace("<Entry>","");
TextBox1.Text=TextBox1.Text.Replace("<Title>","<music name=\"");
TextBox1.Text=TextBox1.Text.Replace("</Title>","\"");
TextBox1.Text=TextBox1.Text.Replace("<Ref href=","addres=");
TextBox1.Text+="</musics>";
//TextBox1.Text=TextBox1.Text.Replace("\r\n","");
/// 下面开始生成 1.xml文件
///
StreamWriter swFromFileStreamUTF8Buffer=new StreamWriter(Server.MapPath("./")+"1.xml",false,System.Text.Encoding.UTF8,512);
swFromFileStreamUTF8Buffer.Write(TextBox1.Text);
swFromFileStreamUTF8Buffer.Flush();
swFromFileStreamUTF8Buffer.Close();
}
}
}