How do I return one item at a time with each button click?

后端 未结 4 1047
南笙
南笙 2021-01-19 17:23

I have an array that I declare above my form load:

protected string[] Colors = new string [3] {\"red\", \"green\", \"orange\"};

When I clic

4条回答
  •  时光取名叫无心
    2021-01-19 17:46

    You can use view state to keep track of some information through a request/response trail for a particular page. You can store an index in the view state and then use that information when the button is clicked to see what should be printed to the screen.

提交回复
热议问题