Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

click text passit to another page

Status
Not open for further replies.

lintow

Programmer
Nov 29, 2004
82
0
0
US
I have a table that a recordset populates when I run my query.

I want to click a value from the cell in a table.

Then pass the value I click to another page. Can this be done.

If so, does anyone have a sample code or an example
 
i wrote the complete code for this in this thread...

thread333-1115720

let me know if you have any questions...

-DNG
 
Make the table values into links and use the QueryString to hold the values that you wish to pass... So that your ASP logic generates HTML that looks like this:
<td><a href='OtherPage.asp?MyValue='TheKey'>The Value</a></td>
 
I am trying to pass the value from CRN field to the Evaluation_Form_Detail page. I'm able to create a link to the page but not sure how I can get the CRN value over to the page once I click it.

Any help would be appreciated

my code
<td align="center"><a href="Evaluation_Form_Detail.asp"><%=(Recordset1.Fields.Item("CRN").Value)%></a></td>
 
Did you try anthing like this:
<a href="Evaluation_Form_Detail.asp?CRN=<%= Recordset1("CRN")%>">
 
DotNetGnat

That works I think

But I dont want to set the ProductID to a query I want to equal to a textbox.

So once I go to the next page I want the ProductID to show up in the textbox
 
then you do the same thing as i shown on page 1...and retrieve the value on page 2 using request.querystring...
and you can have something like this on the form

prodID=request.querystring("Product_ID")
<form>
<input type="textbox" value=<%=prodID%> name="productnum"%>

-DNG
 
DotNetGnat

This code only works with IE. I tried it on Mozilla and it does not work.

Any suggestions
 
what do you mean?? what error did you get on Mozilla??

Please post the error.

-DNG
 
Nothing happens from Mozilla. I click the link and nothing happens. But from IE it works great.
 
ok i think Vbscript is not supported by Mozilla...

in the code change it to javascript...

<script language="[red]javascript[/red]">
Sub ViewDetail(ProductId)
Window.Open "search_specific.asp?ProductId="&ProductId
End Sub
</script>

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top