using
System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class Search : System.Web.UI.Page
... {
protected void Page_Load(object sender, EventArgs e)
...{
Label1.Text = TQtxt();
}
protected string TQtxt()
...{
string path = Request.PhysicalApplicationPath.ToString() + "rss.ashx";
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader m_streamReader = new StreamReader(fs, System.Text.Encoding.Default);
m_streamReader.BaseStream.Seek(0, SeekOrigin.Begin);
string gg = "";
string strLine = m_streamReader.ReadLine();
while (strLine != null)
...{
gg += strLine + " ";
strLine = m_streamReader.ReadLine();
}
m_streamReader.Close();
return gg;
}
}
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class Search : System.Web.UI.Page
... {
protected void Page_Load(object sender, EventArgs e)
...{
Label1.Text = TQtxt();
}
protected string TQtxt()
...{
string path = Request.PhysicalApplicationPath.ToString() + "rss.ashx";
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader m_streamReader = new StreamReader(fs, System.Text.Encoding.Default);
m_streamReader.BaseStream.Seek(0, SeekOrigin.Begin);
string gg = "";
string strLine = m_streamReader.ReadLine();
while (strLine != null)
...{
gg += strLine + " ";
strLine = m_streamReader.ReadLine();
}
m_streamReader.Close();
return gg;
}
}