本文介绍了从文本框数据更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
AttendanceDeviceTerminalRepository DeviceTerminalRepository = new AttendanceDeviceTerminalRepository(); AttendanceDeviceTerminalDto DeviceTerminalDto = new AttendanceDeviceTerminalDto(); DeviceTerminalDto.AttendanceDeviceTerminalID = Convert.ToInt32(Request.QueryString["AttendanceDeviceTerminalID"]); DeviceTerminalDto.TerminalName = Convert.ToString(txtTerminalName.Text.Trim()); DeviceTerminalDto.Location = Convert.ToString(txtLocation.Text.Trim()); DeviceTerminalDto.IsActive = chkActivate.Checked; DeviceTerminalRepository.UpdateAttendanceTime(DeviceTerminalDto);
假设网格包含终端名称"aaa",我想更改"aaa",然后输入"ddd".现在单击更新按钮,但txtTerminalName.Text.Trim()包含在"aaa"之前.请检查并帮助我.
Suppose grid contain Terminal name ="aaa",i want change "aaa",then i give "ddd".Now click update button but the txtTerminalName.Text.Trim() contain before "aaa".pls check it and help me.
推荐答案
这篇关于从文本框数据更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!