1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

help me to load radiobutton from dbase

Discussion in 'C#' started by hungryfriend, Jul 2, 2009.

  1. #1
    i got empty page and i want to fill it with radiobutton i saved to database. right now i'm trying to use


    "<asp:button x x x>" << [Saved in database named "ans", column "button"]
    [Connection OK]
    "select * from ans" << [Query]
    SqldataReader temp = con.ExecuteQuery() << [SqlDataReader OK]
    Response.Write(temp["button"] << [asp radiobutton not showed up]

    but if save "<input type:button>" into database << [this Html radiobutton showed up but i can't validate it]


    the questions are

    1. why it wouldn't showed up? how i fixed it?

    2. i can't validate it like "if(button.Checked ==true)"

    or is there another way to generate radiobutton from database and how to validate it


    help me people... tQ b4... ^ ^
     
    hungryfriend, Jul 2, 2009 IP