|
Thread: Asp
-
Jun 1st, 2001, 03:42 AM
#1
Thread Starter
Hyperactive Member
Asp
In my ASP page , I'm creating a table and filling it with database values.After this i'm creating some hyperlinks.
Problems is the hyperlinks always appear before the table, when i'm expecting them to appear after it.
If anyone has seen this kind of thing before , let me know.
Also , can someone explain the following line :
Response.Write "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?pagenum=" & pagecnt & """>Last Page</a>"
I know its a hyperlink , but where do the servervariables come in.
SCRIPT_NAME has not been defined anywhere else.???
any ideas???
Cheers
-
Jun 1st, 2001, 07:18 AM
#2
New Member
hi
i think you have not closed the asp delimiters properly.
it is not a good idea of giving the hyperlink using response.write.
end the asp script and use <a href>.
there is no way hyperlink will come before the table as you specified.
coming to server variables,those are the collection of request object.
Request.ServerVariables("SCRIPT_NAME") will give the address of the present page.that means the link is given to the same page.
bye
sridhar
-
Jun 1st, 2001, 10:01 AM
#3
-
Jun 1st, 2001, 10:38 AM
#4
Thread Starter
Hyperactive Member
cheers, that seemed to do the trick
One more question
How do I pass a value between 2 different asp pages in the same project.??
I'm using interdev to design them.
-
Jun 1st, 2001, 12:24 PM
#5
Frenzied Member
Assuming this is a value you want passed behind the scenes, you can use a hidden text box and write the variable to the text box on the server side, before it is sent to the browser.
If you don't care about the value being visible, use a querystring.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 1st, 2001, 05:25 PM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|