如何通过单击按钮增加数组值 [英] How to increment the array value by clicking the button

查看:64
本文介绍了如何通过单击按钮增加数组值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好小组成员,
这是siddiqali,我有一个通过单击按钮调用的函数.调用该函数时,我每次都需要递增数组.有人可以告诉我在哪里声明数组以及如何递增数组


谢谢,
MOHAMMAD SIDDIQALI

Hello Group Members,
This is siddiqali,I have a function which i call it by clicking button.And when the function is call i need to increment the array every time.Can any one tell me where should i declare the array and how can i increment the array


Thanks,
MOHAMMAD SIDDIQALI

推荐答案

您不增加数组,而是添加数组.

这取决于您要在客户端或服务器上执行此操作.
You don''t increment an array, you add to it.

That depends on where you want to do this, client or server.




选项1:

您必须在 SESSION ViewState 中维护数组的值.

选项2:

将数组声明为静态
Hi,

Option 1 :

You have to maintain the value of the array in SESSION or ViewState.

Option 2 :

Declare the array as Static


这篇关于如何通过单击按钮增加数组值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆