[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

asp.net/vb.net using databases programmatically

Posted on 2014-03-24
6
Medium Priority
?
55 Views
Last Modified: 2016-06-20
Hi - I'm new to asp.net, using VB.net.   I've gone through the basics of all these nice web controls, specifically to automate the pulling and displaying of data from databases using gridviews, etc.

However, I'm struggling to find a good tutorial of how to access, pull and manage data from a sql database using vb code, etc. not using these fancy web controls, but using code.


Can you recommend a link or two to tutorials that i can work from to understand how to have this greater level of control.

Thanks,
0
Comment
Question by:ErinTheCoderGirl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 

Author Comment

by:ErinTheCoderGirl
ID: 39950226
Hi - thanks but these both populate a gridview... is there a way to retrieve data from the database, and directly populate textboxes, etc.?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39950825
Here is a simple example

Dim Conn As New SqlConnection(Connection_String)
Dim Comm1 As New SqlCommand(Command, Conn)
Conn.Open()
Dim DR1 As SqlDataReader = Comm1.ExecuteReader()
If DR1.Read() Then
	textBox.Text = DR1.GetValue(0).ToString()
End If
Conn.Close()

Open in new window

0
 

Author Comment

by:ErinTheCoderGirl
ID: 39951829
Hi, thanks for the example, but I am looking for tutorialson this.

Do you know of any tutorials that guide through programmatic database controls?
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 2000 total points
ID: 39954444
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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