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 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 am very new to ajax and jquery but I know some php. I
I'm very very new to PHP, but now I have to help my friend
I am very new to Ajax technique Is there any site or online documents
Very new to using Raphael.js I'm looking at the tutorials and I am able
I have made a js function to remove data from a database using ajax.
I am new to Ajax and have been following a tutorial from JQuery.com. I
I have this ajax call executing from client side, with jQuery, but at times,
We have a fairly robust ASP.NET app using quite a bit of AJAX, jQuery
Hi I'm very new to ajax/jquery and I have a problem. I'm sending data
I am a very new beginner and have been reading the help forums. All

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.