-
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???
-
Code:
is:
<A HREF="Default.asp?EDate=<%=Server.URLEncode(31/12/2001)%>"
should be:
<A HREF="Default.asp?EDate=<%=Server.URLEncode("31/12/2001")%>"
-
na.. ..compiled the dll but when it executes it throws out the ASP code without the server processing it, is there a way to encode the dates within VB itself?