I have an asp code which creates a grid or matrics (5 x 5 matrics).Each cell contains a button which will have an initial
.The initial will be read from a database.

say the database has these entries...table name is "TestSuite"
 ---------- ------------
| Initial  | Name       |
 ---------- ------------
| S        | TestSuite1 |
| R        | Suite2     | 
| G        | Suite3     |
| T        | Suite4     |

Initially the button should contain "S" or the first entry of the database and on clicking the button it should change to the next initial say "R".

On clicking the button it should keep changing to the next entry till the last and again from first.

How can i do??...With javascript function??....Earlier i had a combo box which had all the initial in it.User had an option to select a particular "Initial'....Can any one please help me in having a dynamic button??....

Last edited by shabbir; 5Feb2008 at 18:22.. Reason: Code block