Dynamically changing the button initial

Discussion in 'ASP' started by rag84dec, Feb 5, 2008.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    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??....
     
    Last edited by a moderator: Feb 5, 2008

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice