473,511 Members | 10,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is databinding in asp.net read-only?

i have a dataAdpater and dataset, and can use databinding to set the value
of a textbox to a field in the database.

what about updating? what do i need to do? can asp.net/ado.net do it
automagically? it seems to have the code built into the dataadapter to do
the update... how do i get it to update the database if i change text in the
textbox and hit "ok" or whatever?

thanks

neil m
vancouver, canada
Nov 17 '05 #1
3 2092
yes, yes it is.

neil, answering his own question

"neil m" <no**************@hotmail.com> wrote in message
news:MD**********************@news2.calgary.shaw.c a...
i have a dataAdpater and dataset, and can use databinding to set the value
of a textbox to a field in the database.

what about updating? what do i need to do? can asp.net/ado.net do it
automagically? it seems to have the code built into the dataadapter to do
the update... how do i get it to update the database if i change text in the textbox and hit "ok" or whatever?

thanks

neil m
vancouver, canada

Nov 17 '05 #2
Neil,
how do i get it to update the database if i change text in the
textbox and hit "ok" or whatever?
You have to hand-code this, for starters see
http://asp.net/Tutorials/quickstart.aspx. Also, there are third party
components (such as our Table Editor at www.dvxp.com/dxtableeditor/ ;-) that
can handle database updates transparently.

Ries
www.dvxp.com

"neil m" <no**************@hotmail.com> wrote in message
news:MD**********************@news2.calgary.shaw.c a... i have a dataAdpater and dataset, and can use databinding to set the value
of a textbox to a field in the database.

what about updating? what do i need to do? can asp.net/ado.net do it
automagically? it seems to have the code built into the dataadapter to do
the update... how do i get it to update the database if i change text in the textbox and hit "ok" or whatever?

thanks

neil m
vancouver, canada

Nov 17 '05 #3
Neil... Working code at:

http://www.geocities.com/jeff_louie/datagrid.htm

Binding to text boxes is more complicated:

http://www.geocities.com/jeff_louie/...ingclasses.htm

Regards,
Jeff
what about updating? what do i need to do?<


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

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

Similar topics

8
6149
by: pete | last post by:
Hi there, Can someone explain to me why I can't bind to an XmlDocument but I can bind to an XmlNodeList. It's my understanding that they both implement the IEnumerable interface which is...
2
1323
by: RvGrah | last post by:
This code: private void GetPlans(){ dt = dt.Clone(); //New object? cn.Open(); SqlDataReader drd = cmdGetPlans.ExecuteReader(); if (drd.HasRows){ while (drd.Read()){ dt.Rows.Add(new Object...
3
2258
by: Peter Morris [Droopy Eyes Software] | last post by:
Hi all When I bind to multiple records I use a DataList. This allows the web-designer to add code like <%#DataBinder.Eval(Container.DataItem, "Name")%> Whenever I want to retrieve a single...
4
1163
by: aroth | last post by:
I have a basic form with some dropdownlist controls that I would like to populate with items from a database. I keep getting the error "Cannot implicitly convert type...
8
1904
by: Jeff | last post by:
Hi - I'm having trouble Databinding a SQLDataReader to a DataGrid control. I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in a directory of...
8
2166
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
2
1403
by: Kalpesh | last post by:
Hello, I am facing a design problem here & need your expert design advice on this. Scenario: I have a class called Vendor - which has several simple attributes like Name, Address etc Now,...
0
935
by: Kalpesh | last post by:
Hello, I am facing a design problem here & need your expert design advice on this. Scenario: I have a class called Vendor - which has several simple attributes like Name, Address etc Now,...
1
1735
by: Mark Olbert | last post by:
Has anyone else noticed that the design-time support for databinding in custom controls in ASPNET2 sucks? At least for GridViews? So far I've spent going on two days trying to get the following...
1
1618
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
0
7148
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...
0
7367
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,...
1
7089
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...
0
7517
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...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
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...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
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 ...

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.