Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

You don't increment an array, you add to it.

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

Option 1 :

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

Option 2 :

Declare the array as Static
 
Share this answer
 
Comments
SAM_India 29-Oct-11 0:11am    
Hi Shek,
Thanks for your response.Can you provide me some links on SESSION or VIEWSTATE

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900