Results 1 to 3 of 3

Thread: URLEncode

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    29

    Cool 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???

  2. #2
    jim mcnamara
    Guest
    Code:
    is:
    <A HREF="Default.asp?EDate=<%=Server.URLEncode(31/12/2001)%>" 
    
    should be:
    <A HREF="Default.asp?EDate=<%=Server.URLEncode("31/12/2001")%>"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    29
    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?
    Last edited by ThePhoolish; Feb 1st, 2002 at 01:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width