How do call classic ASP  server side functions from HTML page?

Posted on 2008-11-11
Last Modified: 2012-05-05
1. I have one HTML page(Sample.htm) with user inputs form (user inputs : name, email, phone etc..)
2. In My ASP page(Test.asp) have some functions like SendEmail() and StoredDB()
                1. SendEmail() - send the email to admin with user input details
                2. StoredDB() - Get the user details form htm page and stored in to access DB
3. When user  clicks the submit button after entering all user details I want to stored the users details in to access DB and Send a email to admin
Question by:erteam
    LVL 14

    Expert Comment

    Try calling an ASP page with that info using AJAX from the HTML page.
    LVL 2

    Accepted Solution

    in the test.asp page you could put something like this...
    'make sure that your submit button is called submit and have a value of submit
    if request.form("submit") = "submit" then
    end if

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now