Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2003, 02:26 PM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default binding of textbox

I have bound all the Textboxes of a Webform with a DataSet returning from a WebService.

//------ databind ----------
Page.DataBind();
private void InsClient_DataBinding(object sender, System.EventArgs e)
{TextboxName.Text = (string)DataBinder.Eval(ds.Tables[0].DefaultView[0], ColumnName)};
//----------------------------

Now I need to carry all changes I make in the Textboxes directly on the Dataset.

I have found only the following solution:

ds.Tables[0].Rows[0][ColumnName] = TextboxName.Text;
ds.AcceptChanges();

I wish to know wether there was a way to bind directly the Textbox to the Dataset.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
textbox binding tryout greenbriar BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 14th, 2008 08:11 PM
Binding textbox to query - Please help!! vbprogwb Access 16 October 14th, 2003 05:56 PM
Binding TextBox from 3 Tables melvik C# 0 July 6th, 2003 02:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.