winform 还是 webform ?winform的话直接用 System.IO.File.WriteAllText("txt文件路径", Lable1.Text); webform要手动实现一个ashx处理程序,返回Text内容。 context.Response.ContentType = "text/plain";context.Response.Write(内容);内容可以从页面传值或者Session或者从数据库中调