The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Hi
I am Using ASP as Font end and sql server 2005 express as back end. I want Radio Buttons to be repeated in each row of the 1st Column in a table and in the other Columns ,the database Items needs to be loaded.I did it like this look at ex:1..................... My Problem is How Can I Display the Table Items (i.e ID,Name)When I Click any radio Buttons of any specific Row in the table.Just i want to display them in textbox
For Example If I click the radiobuttons in the 3rd row the ID and name in the table to be displayed in textbox.Can anybody help
ex:1
<%
Dim Conn,sql,rsRecords
Reponse.Buffer = True
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("Sample")
Set rsRecords = Conn.Execute("Select ID,Name from Employee_Master")
%>
<HTML>
<HEAD>
<TITLE>......</TITLE>
</HEAD>
<BODY>
<Table border = "1" align = Center Width = 733 Cellspacing = "1">
<TR><TH bgcolor = "red" width = "74"> <TH bgcolor = "red" width = "77">
<TH bgcolor = "red" width = "193">ID<TH bgcolor = "red" width = "366">Name
<%
Dim k
k = 1
while Not rsRecords.EOF
Response.write("<TR bgcolor = yellow><TD>")
Response.write("<TD>")
Response.write("<input id=""Radio1"" type=""radio"" name = ""R" & k & """>")
Response.write("<TD>")
Response.write(rsRecords(0))
Response.write("<TD>")
Response.write(rsRecords(1))
rsRecords.Movenext
k = k+1
wend
rsRecords.close
Conn.Close
%>
</TABLE>
</BODY>
</HTML>
I am Using ASP as Font end and sql server 2005 express as back end. I want Radio Buttons to be repeated in each row of the 1st Column in a table and in the other Columns ,the database Items needs to be loaded.I did it like this look at ex:1..................... My Problem is How Can I Display the Table Items (i.e ID,Name)When I Click any radio Buttons of any specific Row in the table.Just i want to display them in textbox
For Example If I click the radiobuttons in the 3rd row the ID and name in the table to be displayed in textbox.Can anybody help
ex:1
<%
Dim Conn,sql,rsRecords
Reponse.Buffer = True
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("Sample")
Set rsRecords = Conn.Execute("Select ID,Name from Employee_Master")
%>
<HTML>
<HEAD>
<TITLE>......</TITLE>
</HEAD>
<BODY>
<Table border = "1" align = Center Width = 733 Cellspacing = "1">
<TR><TH bgcolor = "red" width = "74"> <TH bgcolor = "red" width = "77">
<TH bgcolor = "red" width = "193">ID<TH bgcolor = "red" width = "366">Name
<%
Dim k
k = 1
while Not rsRecords.EOF
Response.write("<TR bgcolor = yellow><TD>")
Response.write("<TD>")
Response.write("<input id=""Radio1"" type=""radio"" name = ""R" & k & """>")
Response.write("<TD>")
Response.write(rsRecords(0))
Response.write("<TD>")
Response.write(rsRecords(1))
rsRecords.Movenext
k = k+1
wend
rsRecords.close
Conn.Close
%>
</TABLE>
</BODY>
</HTML>
No replies