|
-
Jan 31st, 2002, 06:26 PM
#1
Thread Starter
Junior Member
URLEncode
I'm making a dll that will fire out a load of web links with dates attached to the end of the file i.e default.asp?EDate=14/02/01
is there an internal function to URLEncode the date..
I have been using the following code:
<A HREF=""" & strWebpage & "?EDate=<%=Server.URLEncode(" & PrevDate & ")%>""
Which gives the result within the output string:
<A HREF="Default.asp?EDate=<%=Server.URLEncode(31/12/2001)%>"
ok looks sweet..
But when processed by the server it chucks out:
<A HREF="Default.asp?EDate=1%2E29102115608862E%2D03"
I thought it might have something to do with buffering, but it still throws up the same rubbish with buffer on.
Any ideas???
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
|