Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   Dynamically changing the button initial (http://www.go4expert.com/forums/dynamically-changing-button-initial-t8650/)

rag84dec 5Feb2008 10:49

Dynamically changing the button initial
 
Hi,
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"
Code:

---------- ------------
| 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??....


All times are GMT +5.5. The time now is 14:26.