C# 将制定字符串(客户端)输入到指定网页的TextBox中

chexiaofei1234 2009-11-02 01:21:07
例如 在本机上有一个aa.txt记事本 读入http://user.xici.net/中的用户名和密码(如何解决啊)
请高手多多指教
...全文
115 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
eztting 2009-11-02
  • 打赏
  • 举报
回复
File.ReadAllText("文件路径");

eztting 2009-11-02
  • 打赏
  • 举报
回复

string txtbody = File.ReadAllText();

this.Text1.Text = txtbody;
mytornado 2009-11-02
  • 打赏
  • 举报
回复
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");
}
}
lovelan1748 2009-11-02
  • 打赏
  • 举报
回复
FileStream MSDN或者Google查查

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧