Click here to Skip to main content
15,917,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a DataList View and every Item has a Button that contain Items Id and I want to add this Id in an array on when we click to this Button.
Posted
Comments
OriginalGriff 11-Dec-13 3:10am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Eng. Ashish Srivastava 11-Dec-13 3:23am    
http://karnicalogistics.com/ProductView.aspx?Item=16&in=Coffee%20and%20Centre%20Tables

this is url of my web page and in this web page every item has a button looks like a bucket and when I click on this button I add this item's Id in an array and returns a array item when I call .
OriginalGriff 11-Dec-13 5:06am    
I don't want to go to a random website, particularly one that does *not* do what you want it to! That isn't a lot of help in working out what you *do* what to do... :laugh:
So describe what you want to do in English - not "create an array" but what you are trying to achieve by creating the array.

1 solution

Hi You should define an array and then write code on ButtonClickEvent and get ID from row and add to array.
Yours Farhad.
 
Share this answer
 
Comments
Eng. Ashish Srivastava 11-Dec-13 3:37am    
http://karnicalogistics.com/ProductView.aspx?Item=16&in=Coffee%20and%20Centre%20Tables

this is url of my web page and in this web page every item has a button looks like a bucket and when I click on this button I add this item's Id in an array and returns a array item when I call .

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