Dynamic data and radiobuttons! -
11-07-2004
, 10:13 AM
Hi! Here is my problem. I am creating an update page and on this page I have
several radiobuttons. I have tried inserting values from my database in the
radio buttons for example an Id with the value of "1", "2" and so on. The
radiobutton is suppose to check the button with the value taken form the
database. If I choose another selection and hit the update button, then I want
to update the record with another value offcourse. Below you can see my code,
but it is not working proberly. It works so far that the right value is checked
but I get an error when I hit the update button. Hope some one can help. Thanks!
<%
While ((Repeat1__numRows <> 0) AND (NOT race.EOF))
%>
<%=(race.Fields.Item("Racetype").Value)%>
<input name="fmrace" type="radio" class="inputcheck" value="radiobutton"<%If
(CStr((horsesaleupdate.Fields.Item("Salgsheste.Rac eID").Value)) =
CStr(Race.Fields.Item("RaceID").Value)) Then Response.Write("CHECKED") : %>>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
race.MoveNext()
Wend
%> |