例如 在本机上有一个aa.txt记事本 读入http://user.xici.net/中的用户名和密码(如何解决啊)
请高手多多指教

解决方案 »

  1.   

    FileStream MSDN或者Google查查
      

  2.   

    for (i = 0; i < GridView1.Rows.Count; i++)
            {
                //首先判断是否是数据行
                if (e.Row.RowType == DataControlRowType.DataRow)
                {
                    //当鼠标停留时更改背景色
                    e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#00A9FF'");
                    //当鼠标移开时还原背景色
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
                }
            }
      

  3.   


                string txtbody = File.ReadAllText();            this.Text1.Text = txtbody;
      

  4.   

    File.ReadAllText("文件路径");