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

  • Home
  • SEARCH
  • 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 795607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:30:27+00:00 2026-05-14T22:30:27+00:00

I am very new to asp and having following problem I am getting 2

  • 0

I am very new to asp and having following problem

I am getting 2 values from 2 column, from database and when i try to multiply them, its giving following error

Error Type:
(0x80020009)
Exception occurred.

This is my code

totalPrice = totalPrice + rs("ProductQunaity") * rs("ProductPrice")

Even if someone can tell me what should be “Title” of this question, that would be great.

  • 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-14T22:30:28+00:00Added an answer on May 14, 2026 at 10:30 pm

    In case the error that amphetamachine pointed out is only in your code here at SO and not in the original code, please make sure that you don’t have any type errors ( 😉 ) with the values either.

    totalPrice = totalPrice + CInt(rs("ProductQuantity")) * CDbl(rs("ProductPrice"))
    

    where CInt() converts a value to an integer, and CDbl() converts a value to a double.

    However, if you’re very new to ASP, I’d recommend going straight to ASP.NET – ASP is a technology that hasn’t developed in the last decade, while ASP.NET is Microsoft’s new, fully supported (and pretty awesome) web development platform.

    I’d recommend you start with ASP.NET MVC, since it is usually a lot cleaner, and it’s straightforward to output the html you want. This and this are two good places to start.

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

Sidebar

Related Questions

I am very new to Classic ASP and Visual Basic. I am having trouble
I am very new to ASP, it is far from my language of choice,
I am very new to asp classic application. The below code snippet is from
I am very new to to ASP.NET MVC 2, and I am having bucketloads
I am VERY new to ASP.NET. I come from a VB6 / ASP (classic)
I am having a very strange problem with an ASP.Net project using an Entity
I'm very new to ASP.NET MVC, so forgive me if this is something I
I am relatively new to ASP.NET MVC, and am very impressed with the clarity
I'm following Pro ASP.Net MVC2 book and literally 90% of everything is new to
If you have the following: Asp.Net MVC 2 project having object classes that define

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.