Problem formatting a querystring

Results 1 to 2 of 2

Thread: Problem formatting a querystring

  1. #1
    Join Date
    Dec 1969

    Default Problem formatting a querystring

    Got a simple piece of code that creates a log from a database. I have giving the user the option of deleting that log entry by just writing it to the page if they are in a certain group. However, I keep getting a type mismatch trying to create the query string. I ahve tried to format the string 10 different ways, but none work.<BR><BR>This is the line I am getting the error on.<BR><BR>Response.Write "&#060;a href=deleteDiary.asp?ID=" + DID + "&#062;Delete&#060;/a&#062;"<BR><BR>I assign DID earlier in the code, it is just an integer number. HOw do I get Response.Write to not crap out when it hits that integer?<BR><BR>If I do this<BR><BR>&#060;a href=deleteDiary.asp?ID=&#060;% = DID %&#062; &#062;Delete&#060;/a&#062;<BR><BR>Everything works, but I don&#039;t like it that way because I am trying to use Response.Write to build all my HTML.

  2. #2
    Join Date
    Dec 1969

    Default Use & not +

    You combine strings in VB Script with &<BR>Response.Write "&#060;a href=deleteDiary.asp?ID=" & DID & "&#062;Delete&#060;/a&#062;"

Posting Permissions

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