Forums
This topic is locked
dynamic links in NN4
Posted 27 Nov 2001 22:03:18
1
has voted
27 Nov 2001 22:03:18 Dawn Maestas posted:
How do I make my dynamic link work in NN4? I know it requires a URLEncode. Here is the code:<td align="left" valign="top"> <A
HREF="<%=(rsAllMovies.Fields.Item("Link".Value)%>?<%= MM_keepNone &
MM_joinChar(MM_keepNone) & "MovieID=" &
rsAllMovies.Fields.Item("MovieID".Value %>"
class="smallfont"><%=(rsAllMovies.Fields.Item("MovieID".Value)%></A> (<span
class="smallfont"><%=(rsAllMovies.Fields.Item("FileSize".Value)%></span><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle></
td>
The ASP page also contains the following code:
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
I also clicked on the dynamic link and selected "Encode - Server.URLEncode" as the link's format. But I still got the following error. (And in NN6/IE6 the link just jumped to another list of files on the site instead of working properly like it did before I added the URLEncode.)
HTTP Error 400
400 Bad Request
Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications.
Dawn Maestas
OS: Win2000
Server: IIS, Win NT
UD: 4.0
Code: ASP
DB: Access 2000
Edited by - Monkeynme on 28 Nov 2001 18:20:28
Edited by - Monkeynme on 28 Nov 2001 18:21:05