i think i alomst got it...
This code will display the checked fields based on the database and allow me to update the values. the only problem is the table looks like it repeats for every record and i also have a submit button for every record...
I need to have only one submit button at the...
I did have to make a slight change to the code and it did indeed work.
Changed the second name= to the same name:
<input type="radio"
name="r<%= Recordset1("GameID")%>"
value="1"
<%If (CStr(Abs(Recordset1("Pick_HA"))) = CStr("1")) Then...
if i change it to this:
<td width="44%"><input <%If (CStr(Abs((Recordset1.Fields.Item("Pick_HA").Value))) = CStr("1")) Then Response.Write("checked") : Response.Write("")%> type="radio" name="checkbox" value="1">
<input <%If (CStr(Abs((Recordset1.Fields.Item("Pick_HA").Value))) =...
sheco,
This works perfectly with the checkbox just like this below?
%>
<tr>
<td width="8%"><%= Abs((Recordset1.Fields.Item("Pick_HA").Value)) %></td>
<td width="44%"><input <%If (CStr(Abs((Recordset1.Fields.Item("Pick_HA").Value))) = CStr("1")) Then Response.Write("checked") ...
is their a way to create dynamic radio buttons in dw using a repeat region that reads from a recordset field (bit 1 or 0) in whic for every record it displays a radio button checked 1 or zero?
I got this to work with a check box field but it will not work with a radio button.
Can someone show...
i do not know how to fix. dreamweaver generates the rado button code and says set value equal to field.
here is the view source
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="post">
ID#...
I hate posting a lot of code but i am deperate. I have a database field cal pick_ha, a bit field with 1 and 0 populated. I want to display them in a table and allow users to update them. With this code you can see the dynamic field pick_ha display as true or false when executed but the radio...
I can only get it to populate certain radio buttons from the db. Only two appear, when their are 16 in total with 1 and 0's for everything.
I followed you code exactly, i set the set value equal to the database field and still nothing.
the loop seems to work perfectly for everything else...
Sheco,
Very very helpful example. I did get it to execute properly. The problem I am having is getting it to appear cleanly in a nice table. If I insert a table and place the ASP code in it, it repeats the whole table for every record.
I cannot get the repeat region to operate correctly...
The problem is the table data is dynamic. I cannot rely on hard coding the radio buttons. It needs to be driven the same way as the repeat region works...
I have a sql server 2000 table with the following.
ID Choice
1 1
2 0
3 1
In dreamweaver, using asp vb script language, I created a recordset of this table, the a dynamic table of the data (repeat region) to display this data on my web page.
I want to add a radio group that...
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.