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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:25:40+00:00 2026-06-18T10:25:40+00:00

I am a Web Developer who has primarily dealt with PHP and MySQL and

  • 0

I am a Web Developer who has primarily dealt with PHP and MySQL and now has to program almost exclusively in VB.Net. While I have had plenty of experience in Visual Basic in the past, I had almost none as it pertains to web. The learning curve is there, but not terrible.

I’m very familiar with retrieving information from a MySQL Database using PHP, but am now having to code in VB.Net and wanted to know if there is a similar process that doesn’t involve the drag and drop of Data Controllers in Visual Studio?

What I need to do is have a working page that checks for records in a database on page load, and if there are some present for a given time period, populate those records into multiple input fields.

Thanks in advance.

  • 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-06-18T10:25:42+00:00Added an answer on June 18, 2026 at 10:25 am

    From Microsoft’s example for a SqlDataReader:

    Depending on what controls you are going to populate, and how you are going to present the data, there may be a better way to set the datasource for those controls, but if you want to read a MS SQL Server db and process yourself, do something like this:

    Option Explicit On 
    Option Strict On 
    
    Imports System.Data
    Imports System.Data.SqlClient
    
    Module Module1
    
    Sub Main()
        Dim str As String = "Data Source=(local);Initial Catalog=Northwind;" _
       & "Integrated Security=SSPI;"
        ReadOrderData(str)
    End Sub 
    
    Private Sub ReadOrderData(ByVal connectionString As String)
        Dim queryString As String = _
            "SELECT OrderID, CustomerID FROM dbo.Orders;" 
    
        Using connection As New SqlConnection(connectionString)
            Dim command As New SqlCommand(queryString, connection)
            connection.Open()
    
            Dim reader As SqlDataReader = command.ExecuteReader()
    
            ' Call Read before accessing data. 
            While reader.Read()
                ReadSingleRow(CType(reader, IDataRecord))
            End While 
    
            ' Call Close when done reading.
            reader.Close()
        End Using 
    End Sub 
    
    Private Sub ReadSingleRow(ByVal record As IDataRecord)
       Console.WriteLine(String.Format("{0}, {1}", record(0), record(1)))
    
    End Sub 
    
    End Module
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a .NET web developer who has just been asked to produce a small
I am an experienced .NET developer who has primarily been working with webforms. I
So I am web developer who used to have a kind graphics design person
I'm a .NET web developer, who's bought a Mac, and is interested in doing
I have a friend who wishes to work as a freelance web developer, but
I've got a .NET 2.0 windows service written by another developer who has since
Afternoon all. I'm a php web developer who dips his toe in and out
I am a reasonably competent C# developer who has experience in threading, web development,
Good day! I'm a web developer who has to choose a way\protocol for web-server
I am a Java developer who has created a rather big Web service that

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.