ASP.NET按钮控件中CommandName和CommandArgument用法  

Usage of ASP.NET Button Control CommandName and CommandArgument

在线阅读下载全文

作  者:黄小花[1] 

机构地区:[1]江西交通职业技术学院信息工程系,江西南昌330013

出  处:《计算机时代》2011年第5期36-37,39,共3页Computer Era

摘  要:在Web页面中,要判断用户单击了一组按钮中的哪个按钮,大多数情况下,可以利用命令按钮提供的CommandName和CommandArgument两个属性来完成。这两个属性是ASP.NET中创建命令按钮控件的两个重要属性,利用它们在程序中传递参数,通过引用参数值可,方便地在同一个事件过程确定哪个按钮被单击了。文章主要围绕CommandName和CommandArgument用法,介绍了如何在Click事件和Command事件中获取值的方法及正确使用它们应该注意的问题。In a Web page,to judge which button in a group of buttons is clicked by user can be achieved by using CommandName and CommandArgument properties provided by command button in most cases.The two properties are important for creating command button control in ASP.NET,they can be used to pass arguments in program,then which button is clicked can be easily determined through referencing argument values in the same event procedure.Focusing on the usage of CommandName and CommandArgument,how to get the vales from Click and Command events,as well as the problems that should be noticed is introduced.

关 键 词:按钮控件属性 CommandName CommandArgument 参数传递 

分 类 号:TP393.092[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象