Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7007987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:40:40+00:00 2026-05-27T21:40:40+00:00

Ok folks, I am trying to write a line of code in Classic ASP

  • 0

Ok folks, I am trying to write a line of code in Classic ASP for a button that will trigger it to go to another page with a querystring variable. However I am having difficulties getting this to work.

Here is my code so far:

response.write "<td valign='top'><input type='button' name='cmdUpdateInfo' value='Update Info' tabindex='7' onclick='window.location=updatecustomer.asp?UpdateID=""'" & rs("ID") & "'""/></td>" & vbCrLf

When this line is processed I get the following error on my ASP processor:
Error Type:
(0x80020009)
Exception occurred.
/ls_internal/newinvoice.asp, line 325

line 325 is the line of code above. I know this is something simple, but for the life of me, I cannot seem to figure it out.

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:40:41+00:00Added an answer on May 27, 2026 at 9:40 pm

    As you’ve currently written your line of code it will translate into

    <td valign='top'><input type='button' name='cmdUpdateInfo' value='Update Info'
    tabindex='7' onclick='window.location=updatecustomer.asp?UpdateID="'999'"/></td>
    

    Assuming that the rs(“id”) contains the value 999. There is nothing wrong with that line of code, first thing I would try doing is comment out the rs(“id”) element and see if the page runs ok.

    If it doesn’t then I would check further up your page – are you sure that your SQL query is returning anything? I wonder if your rs is empty (not a NULL value, I mean no records were returned) In which case you need to add an IF NOT rs.eof THEN condition to your code.

    Personally I would follow Gaby aka G.Petrioli’s recommendation above to convert your HTML attributes into double quotes, and JavaScript to single.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write functions that will allow me to marshal/unmarshal simple structs into
Trying to write a PowerShell cmdlet that will mute the sound at start, unless
I'm trying to write a Python script that will get the md5sum of all
Folks I am surprised to see my code working, that I dont have any
Folks - I'm trying to learn how to write OO Javascript, I come from
Folks, I'm trying to open a youtube video in fancybox using the following code:
I am trying to write a simple bash script that is listening on a
Folks, I've a large legacy .Net code base, and I'm trying to introduce Unit
So I'm trying to write a function that folds a custom data type which
Folks, Here's what I am trying to do: my script will be running as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.