• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






依然---编程

或许,这样,然后
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2010年5月27日

把textbox中的文本按照/r/n拆分成string[]
摘要: string str = this.txtNames.Text.Trim(); string[] result = str.Replace("/r", string.Empty).Split(new char[] { '/n' }); 阅读全文
posted @ 2010-05-27 18:46 依然---编程 阅读(183) 评论(0) 推荐(0)
 
在asp.net中 把一个文本文档的中的数据一行一行添加到textbox中
摘要: 先把文本文档上传到服务器上用viewstate保存路径 /// <summary> /// 上传文件 /// </summary> /// <returns></returns> public bool StartPostFile() { bool mark = true; string fileName = this.fuText.FileName; string fileType = fileName.Substring(fileName.LastIndexOf('.')); if (fileType == ".tx 阅读全文
posted @ 2010-05-27 18:04 依然---编程 阅读(454) 评论(0) 推荐(0)