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

后端 未结 4 1012
南笙
南笙 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

    Still looking for a solution to this and whilst doing so saw this pop up This will get your button click amount:

    ViewState["count"] = Convert.ToInt32(ViewState["count"]) + 1;
    

    As far as looping through the array I am still working on it. I have only been able to display the last item in the array.

提交回复
热议问题