How to Retrieve and Save Data using TextBox Control

This tutorial is part of Database Programming Made Easy Series.

In this tutorial you will learn in different ways on how to retrieve and save data using textbox control.

First we retrieve the data using Data Readers and save it back using ExecuteNonQuery.

Second we will use Dataset and Data Adapter. The same output but with different approach.

Previous: Windows Forms

Next: Using Data Readers and ExecuteNonQuery

Comments

Submitted byAnonymous (not verified)on Tue, 01/05/2010 - 13:05

retrive data from previous page
Submitted byAnonymous (not verified)on Wed, 03/03/2010 - 20:36

i want to show a image on image control using textbox like i typed text in textbox "www.google.com" now i want google homepage on my image control.............
Submitted byAnonymous (not verified)on Sat, 04/10/2010 - 20:23

very good
Submitted byAnonymous (not verified)on Fri, 04/16/2010 - 16:54

Hi........ pls help me. how to retrieve values in a textbox according to the selected value in dropdownlist in web application.
Submitted byAnonymous (not verified)on Thu, 08/19/2010 - 12:58

it is best
Submitted bywahhgon Sun, 11/14/2010 - 18:47

i have made registration page but before saving data to database i want to check availability of account which user want to make from database.i want to this in c# and using asp.net can anybody help me plzzzzzzzzzzzz........

protected bool check_availability(string username,MySqlConnection connection) { MySqlCommand command = new MySqlCommand(); command.CommandText = "select UserName from validationtable"; command.Connection = connection; MySqlDataReader reader1; bool flag = true; reader1 = command.ExecuteReader(); while (reader1.Read()) { if (username == (string)reader1[0]) { flag = false; } } reader1.Close(); return flag; } before this u need to read the username entered while sign up process and estabilish connection to database. use the flag value for further logic
Submitted byAnonymous (not verified)on Fri, 04/15/2011 - 18:53

I HAVE TO RETRIEVE VALUES FROM SQL SERVER DATABASE TO TEXTBOX ACCORDING TO SELECTED ITEM FOR WEB APPLICATION... PLZ REPLY THS QUES..........
Submitted byAnonymous (not verified)on Tue, 04/19/2011 - 13:59

Hi all, can anyone tel me how to retrieve data from the database and display in the textbox

Add new comment