|
And I'm saying, you can't access a javascript variable from server-side code, because the javascript environment DOES NOT EXIST until AFTER the server-side code has finished executing.
If the variable you're talking about (PassStr) is generated by javascript (clientside), you can't access it serverside. If it's generated by JSCRIPT (not javascript) on server-side (by using RUNAT=SERVER), then you'd access it just like you would a vbscript variable:
Response.Write("<tr><a href='Panel.asp?"&PassStr&"'><center> "&vbcrlf)
But if I understand you correctly, the variable PassStr is created by clientside javascript, then you can't response.write it because the variable doesn't exist until after the page leaves the server.
You can, however, add a link to the document from the javascript environment, AFTER the page has loaded. You do not need server-side code for this, you need the javascript code I gave you. Or if you don't want to write it out directly with document.write(), you can modify the contents of an existing div by using document.getElementById('thedivsidgoeshere').inner HTML='whatever html you want to put into the div goes here'.
|