private void GetFileContents(String FileName)
    {
        try
        {
            FileInfo inf = new FileInfo(FileName);
            StreamReader rd = new StreamReader(inf.OpenRead());
            tb_Context.Text = rd.ReadToEnd();
            rd.Close();
                }
        catch (Exception e)
        {
            Response.Write("<script>alert('"+e.Message+"')</script>");
        }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-12-03
  • 2021-05-20
  • 2021-06-09
  • 2022-02-17
  • 2022-02-10
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-09-29
  • 2021-09-17
相关资源
相似解决方案