Posted on 2007-07-30
Last Modified: 2013-11-27
As a part of our routine work, I need to fill up forms in various goverment websites. This involves mostly details of our clients, such as the passport no, d o birth, etc.. These data we have in a local database (we have an application to save this data locally)

To simplify this task, I have been asked to develop a system that can read the data from our internal database and then post the relevant fields in the government websites.  We have all the required information in our database and we have a  vb form for the staff to fill in the required information.. So the task for me is to map the relevant fields from our form and then post the data to the government website.

Is there a way I can do this with VB coding ?

Kindly advise. An immediate reply would be highly appreciated..

Thanks and regards,

Question by:sreejithm
    LVL 14

    Expert Comment

    We use a control callec Mabry HTTPX.  This control will even allow you to send certificate information along with the data to a web page that accepts POST data.  This is an ActiveX control and should run in VB.NET (although we are using it an old application written in VB6)

    Author Comment


    I managed to passon the user-id and password to the corresponding fields.. But I am unable to call the method to click the "Login" button.

    Please find attached,  the section of the source of the website

    function submit1_onclick()
          if (CreateUserForm.txtLoginID.value == "")
                alert ("Please enter username, username should be at least 4 alphanumeric characters");
                return (false);
          // if empty  
          if (CreateUserForm.txtPassword.value == "")
                alert ("Please enter password, password should be at least 4 alphanumeric characters");
                return (false);

        // password lessthan 4
          if (CreateUserForm.txtPassword.size < 4)
                alert ("Please enter password, password should be at least 4 alphanumeric characters");
                return (false);


    I am using a web browser component and the subroutine that I use for posting i

     Private Sub submit(ByRef obj As WebBrowser, ByVal mis As String)
            Dim stat As Boolean

            stat = obj.Document IsNot Nothing

            If stat Then
             End If

    End Sub

    Kindly help

    Thanks and best regards,

    LVL 14

    Accepted Solution

    What about something like this...


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    732 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

    17 Experts available now in Live!

    Get 1:1 Help Now