当前位置:网站首页>asp.net 的经验
asp.net 的经验
2022-07-27 16:24:00 【微服务布道者】
用 ddlCtl.selectItem.value = dr[0].toString().Trim();
还是用
ddlCtl.selectItem.Selected=false;
ddlCtl.Items.FindControlByName["dr[0].toString().Trim()"].Selected=true;
好,是很明显的,用下面一种好。(个人意见)
因为直接赋值会把绑定的值给冲掉,如果绑定仅仅在!isPostBack执行的话。那赋值几次后就会发现ddlCtl里面的值已经不是原来的值了,当然可以再做其他的人工控制来处理,但那不是正确解决问题的方式(个人理解是解决问题要尽量处理问题的源头)
2、datagrid中的显示,如果总共10列,其中有一列其中有一个值为:PPM1600+cACO3+cACO5=25kg+2.5kg+2.6kg,而datagrid不是无限宽的情况下,那么其它列都会被此列给挤扁,datagrid显示的结果将非常难看(每行的高度可能很大)。
解决方法是:如果有表达方式这种很长的情况,.net是当作一个词来处理,必须中间加空格。
边栏推荐
- 收下这份实操案例,还怕不会用Jmeter接口测试工具
- Uploading and downloading of files
- MongoDB
- Typeerror: conv2d(): argument 'padding' (position 5) must be multiple of ints, not STR [error]
- JDBC-MySql 02 数据访问和DAO模式
- Order timeout cancellation and commodity query by category
- MySQL 05 stored procedure
- Nacos display service registration address error
- NPM basic use
- Acquisition data transmission mode and online monitoring system of vibrating wire wireless acquisition instrument for engineering instruments
猜你喜欢

Nacos display service registration address error

Nodejs template engine EJS

Commodity comment information and comment information classification

文件的上传和下载

Multifunctional wireless remote control moxibustion instrument chip dltap703sd

NPM's ID card and dependence

Selenium自动化测试面试题全家桶

转行软测&跳槽到新公司,工作怎样快速上手?

web UI 自动化测试:Selenium 语法详解 史上最全

如何用自动化测试搞垮团队
随机推荐
连接查询和子查询
express
Personal Center - order business process
Selenium自动化测试面试题全家桶
C static method and non static method
Led learning eye protection table lamp touch chip-dlt8t10s-jericho
Big enemies, how to correctly choose the intended enterprises in the new testing industry?
MicaZ+Tinyos学习笔记(1)
Kinect for Unity3D——BackgroundRemovalDemo学习
Study notes of Microcomputer Principles - general integer instructions and Applications
如何用自动化测试搞垮团队
Unity学习笔记——物体移动六种常见函数
The great idea of NS2
MySQL 02 初体验
Ruiji takeout SQL table
Useful resources for ns2
自控原理学习笔记-系统稳定性分析(1)-BIBO稳定及Routh判据
WinForm remove the close button in the upper right corner
Kinect for Unity3d----KinectManager
瑞吉外卖sql表