ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 4th, 2003, 02:29 AM
aspuser25 aspuser25 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 141 aspuser25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
which radio i clicked?

I move from one form to anohter when i click to a radio button. I can identify which radio button i clicked by trapping its value. but my problem is that there are a set of radio buttons followed by values being displayed from a join table.

I want to know the values displayed from the table. so that based on which i can do my further processing. Like the radio button is showing the name of student, his id, story id...and 2-3 more things. when i select the first radio button (its value = 0 ),
how can i know that the selected one is for which student_id and for which story_id.???

here is my code:
<%
DIM SQL
DIM RSA
DIM BGC
dim iCount

iCount = 0
set RSA = Server.CreateObject("ADODB.Recordset")
RSA.OPEN "SELECT sc.student_id,si.student_name,sc.story_id, sc.status_student, tc.status_teacher FROM student_content sc, student_info si, teacher_content tc, story_table st where (sc.student_id = si.student_id and sc.story_id = st.story_id) and (tc.student_id = si.student_id)", "DSN=school"

Do while not RSA.EOF
%>
<html>
<head>
<title> none </title>
</head>
<body>
<form method="post" action="doc1.asp">
<table>
<tr>
<td><input type=radio name=RR value=<%=iCount%>></input> <%= RSA.Fields ("student_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("student_name").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("story_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_student").Value%></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_teacher").Value %></td>
</tr>
</table>
</body>
</html>
<%
iCount = iCount + 1
rsa.movenext
loop
%>
<p align="center">
<input type="submit" value="Submit" >
</p>

thanks

Reply With Quote
  #2  
Old September 4th, 2003, 03:04 AM
aspuser25 aspuser25 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 141 aspuser25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Thumbs up

hey thanks vlince... i happened to see this link after i posted
http://forums.devshed.com/showthrea...ghlight=onclick

where u had very nicely explianed the solution to a similar problem!

thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > which radio i clicked?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT