lucky20
asked on
How can I pass Id value with the link
Hi,
I am displaying name values in a link dynamically.
Is there any possiblity to pass id value with that.
this the code I have used
is there any possiblity to add id value in link.. like this
I am displaying name values in a link dynamically.
Is there any possiblity to pass id value with that.
this the code I have used
<%
OpenSQLConn
SQL="select * from table1"
set rs=Conn.Execute(SQL)
%>
<form method="post" name="form1" action=form1.asp">
<table>
<% Do while not rs.eof %>
<tr><td><a href="form2.asp"><%= rs("Name") %></a></td></tr>
</table>
<% rs.Move Next
Loop
%>
is there any possiblity to add id value in link.. like this
<a href="form1.asp?Id="<%= rs("Id") %>"><%= rs("Name") %></a>
or Is there any better option to pass the id valueASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does the ID field exist? Does it have a value for all records?
ASKER
I got it..it hut spemm mistake..
thanks
thanks
ASKER
it is showing id value as blank.