views:

29

answers:

1

For my web application,

I want a 10*10 (100 cells which is created dynamically) grid to be displayed in the following manner.

  1. Initially all the cells' color is green.

  2. If i click on any cell its color becomes red if it is green and if i click again it becomes red.(Toggle the cell color)

  3. I should be able to display dynamic number of link buttons in each cell.On the click of which it pop ups a window.

Are there any control available for this? Or how can I implement this functionality.

A: 

You can achieve this behavior very easily using jQuery.

You might want to look into some function like:

I don't recommend you to do it with C#, you would have to place an UpdatePanel and cause a postback just to change the cell colors.

BrunoLM