473,396 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Data Access in web forms

Hello

I'm trying to make my first asp.net application.

Every tutorial shows how to retrieve data from database into a datagrid, or
datalist or repeter.

What if you have multiple texboxes, comboboxes and radio buttons, and you
want to populate those from the database.

How do we do this ?

I created the text boxes and from the gui, I use databinding property to
connect text to dataset.table.defaultview[0].field

I put

daAdapter.Fill(dsDataSet) in the page_load event.

but nothing gets populated in the text boxes.

Is there any sample where it shows/teaches data access without a datagrid ?

Thanks

Hemang
Nov 19 '05 #1
2 1070
You might try calling .DataBind() on each textbox after setting the other
data binding-related properties and filling the DataSet.

-HTH
"news.microsoft.com" <v-*****@microsoft.com> wrote in message
news:ON*************@TK2MSFTNGP15.phx.gbl...
Hello

I'm trying to make my first asp.net application.

Every tutorial shows how to retrieve data from database into a datagrid,
or datalist or repeter.

What if you have multiple texboxes, comboboxes and radio buttons, and you
want to populate those from the database.

How do we do this ?

I created the text boxes and from the gui, I use databinding property to
connect text to dataset.table.defaultview[0].field

I put

daAdapter.Fill(dsDataSet) in the page_load event.

but nothing gets populated in the text boxes.

Is there any sample where it shows/teaches data access without a datagrid
?

Thanks

Hemang

Nov 19 '05 #2
Thanks Jeffrey

I tried that, it did not work.

This is my page load function:

private void Page_Load(object sender, System.EventArgs e)

{

daReview.Fill(dsCaseReview);

Page.DataBind();

txtReviewDate.DataBind(); // I set this after your post although
Page.DataBind(); should be sufficient.

}

"Jeffrey Todd" <Me@Somewhere.net> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
You might try calling .DataBind() on each textbox after setting the other
data binding-related properties and filling the DataSet.

-HTH
"news.microsoft.com" <v-*****@microsoft.com> wrote in message
news:ON*************@TK2MSFTNGP15.phx.gbl...
Hello

I'm trying to make my first asp.net application.

Every tutorial shows how to retrieve data from database into a datagrid,
or datalist or repeter.

What if you have multiple texboxes, comboboxes and radio buttons, and you
want to populate those from the database.

How do we do this ?

I created the text boxes and from the gui, I use databinding property to
connect text to dataset.table.defaultview[0].field

I put

daAdapter.Fill(dsDataSet) in the page_load event.

but nothing gets populated in the text boxes.

Is there any sample where it shows/teaches data access without a datagrid
?

Thanks

Hemang


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
2
by: Josh Strickland | last post by:
I am attempting to create an Access database which uses forms to enter data. The issue I am having is returning the query results from the Stored Procedure back in to the Access Form. ...
2
by: carrionk | last post by:
Hi, Which are the options for publishing access information over an Intranet? Besides ADPs, are there any programs I can use for letting people use Forms of an Access DB inside IE? I've been...
10
by: Doug Bell | last post by:
Hi, I have an application that has a "Data Access Class" and "User Interface Class". It is for receiving Purchase Order data from one system and pushing processed transactions to another...
15
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
11
by: Chad | last post by:
Hi Is it possible to substitute an alternative data source (eg MySQL or SQL Server) into an existing MS-Access application?
2
by: Carla Hepker | last post by:
I have several in-house applications that I have developed over the years using vba in Access Data Projects. When we converted the SQL server over to 2005, some of the sorts no longer functioned...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.