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 4240594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:11:09+00:00 2026-05-21T03:11:09+00:00

Very new to AJAX, but have learned a bit from online tutorials. If I

  • 0

Very new to AJAX, but have learned a bit from online tutorials. If I was using PHP all would be well, but…

…I have to use VB.Net. Microsoft provides black magic tools (in the Visual Studio IDE) for making AJAX work, but using these seems hopelessly complicated and documentation for these tools covers only the simplest examples. By contrast, writing the scripts myself seems much easier, and I will understand what is going on.

So my question is, is it possible to write my own AJAX javascript (creating the XMLHttpRequest object, etc.), and have the server-side function be written in VB.Net instead of PHP? Has anyone ever tried this?

  • 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-21T03:11:10+00:00Added an answer on May 21, 2026 at 3:11 am

    Of course. You can implement an HttpHandler on the server to give you full control of what happens with the request and the response. The Microsoft AJAX thing is kind of like a black magic box, but ASP.NET is not.

    Here is a starting point:

    public class MyHandler : IHttpHandler
    {
        #region IHttpHandler Members
    
        public bool IsReusable
        {
            get { return true; }
        }
    
        public void ProcessRequest(HttpContext context)
        {
            context.Response.Write("Hello AJAX World");
        }
    }
    

    And don’t forget to register the handler in the web.config 😉

    <add name="ajax_page.ashx*" 
         path="ajax_page.ashx" 
         verb="*" 
         type="MyNamespace.MyHandler, MyAssembly" />
    

    Here is my best guess at what this should look like in VB.NET (NOTE: I have never written a single line of VB.NET)

    Public class MyHandler 
        Inherits IHttpHandler
    
        Public Property IsReusable() As Boolean
            Get
                Return True
            End Get
        End Property
    
        Public Sub ProcessRequest(ByVal context as HttpContext)
            context.Response.Write("Hello AJAX World")
        End Sub
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very very new to PHP, but now I have to help my friend
I still very new using Subversion. Is it possible to have a working copy
Hi I'm very new to sql but have been passed a job in which
I have tried a very simple example of PHP MySQL Ajax following the example
Im very new to SQL but need to write a query to do the
I am very new to creating webservers - and I have had several goes
I am VERY new to ASP.NET. I come from a VB6 / ASP (classic)
I'm very new to the AJAX and Javascript world and I'm trying to implement
Hei guys i have this JQuery Ajax call from my view and it looks
I have a php page that echos out rows from a database. I want

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.