473,803 Members | 3,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How fill the textbox with the DataSet values?

Hello all
I have a form that contains several textbox.
I have also a DataSet that contains the Fill function by ID.
How can I assign the DataSet values into my TextBox?

Thanks a lot.
Aug 24 '06 #1
1 2301
hi patricio
if you want a textbox for each record in the dataset then you should use one
of the List controls, such as DataList, GridView or Repeater.
i would use a DataList control based on the info you provided, because you
have more control over the controls rendered for each row. In the
ItemTemplate section of the DataList, insert some aspx code like this:

<asp:TextBox runat="server" Text='<%# Eval("DataBaseF ieldName") %>' />

if you're using .Net 1.1, use the DataBinder.Eval (Container.Data Item,
"DataBaseFieldN ame") function instead of the short form of Eval().

it sounds like you may have manually created all the textboxes on the form.
this probably isn't the best approach if you want a textbox for each row in
the dataset. if this is intentional, please post more information on what
you are doing.

tim
--------------------------
blog: http://tim.mackey.ie

"Patricio" <pa***********@ msn.comwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
Hello all
I have a form that contains several textbox.
I have also a DataSet that contains the Fill function by ID.
How can I assign the DataSet values into my TextBox?

Thanks a lot.

Aug 24 '06 #2

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

Similar topics

0
1346
by: Walter | last post by:
Hello, I want to fill a dataset with a random database (mdb-database or SQL-server database), from which a don't know the tables, relations or anything. So after this, the dataset will be 1:1 copy of the database, and then I can find the relations between the table's, etc. Can this be done? And how? :) Every example I see is done with SQL, which need a table-name. And I just don't know the table names :) Want to do something like...
0
857
by: Ari | last post by:
Hi, i creating a form where i need fill a dataset with records that come from two diferents Comboboxes, and the same time call information in the table that is relate with the information that are in the ComboBoxes. I'm using VisualBasic .NET. how I can do that. I will appreciate the help. Thanks
1
1257
by: Ari | last post by:
Hi, i creating a form where i need fill a dataset with records that come from two diferents Comboboxes, and the same time call information in the table that is relate with the information that are in the ComboBoxes. I'm using VisualBasic .NET. how I can do that. I will appreciate the help. Thanks
1
1545
by: Ari | last post by:
Hi I hope some body can help me. I'm new with Visual Basic .net. I'm trying to fill a DataSet from to combo box but i do not how to do and i do not find any information that expalin to me how to do. What i want to do is that when the user selct the records from each combo box he/she click on a botton to add that information to the Data Set. thank
3
17692
by: Robert Brown | last post by:
Hi All.. I am experiencing Timeouts after about 30-40 seconds when trying to fill a dataset from SQL. I have seen a lot of posts mentioning to set the commandtimeout property, but how do you do that on an SQLAdapter? I setting a connection timeout on the SQL Connector, but that didn't help. Here is my code.. Can anyone help???? BTW: I am returning about 1
1
1682
by: scottin | last post by:
I setup the dataset, which is the datasource for a datagrid. When I originally fill the dataset, the data is loaded into dataset.tables(0). (dataset.tables(0).rows.count = 8) Then, if a row gets added to the table, I want to refresh the dataset. When I do so, the data is loaded into dataset.tables(1). (dataset.tables(0).rows.count = 0, dataset.tables(1).rows.count = 8) (We can go into why the record isn't added later)
0
940
by: Sam | last post by:
Hi, I'm trying to fill a dataset using two requests : select column_name as column_name1, data_type as data_type1 from information_schema.columns where table_name = 'table1' and select column_name as column_name2, data_type as data_type2
4
1971
by: SteveT | last post by:
I am wanting to populate several treeviews, one for the <TRs> group and one for the <TGsgroup. Is there a simplier way to populate the Treeview than the one I did below? It seems difficult to get to the correct DataSet values. <?xml version="1.0" encoding="utf-8" ?> <TestSample> <TRs> <TR1>
5
5364
by: Monty M. | last post by:
Hello; I was wondering if anyone can assist me with this problem. Here are the tools I am using: Language: C# Database: MS SQL Server 2000 Application: Visual Studio 2005 1. I have a table whose primary key is a varchar data type.
0
9565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10550
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.