检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:黄小花[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[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.171