Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Text box data binding

Reply
Thread Tools

Text box data binding

 
 
FredBloggs012
Guest
Posts: n/a
 
      06-14-2004
If I code a textbox text property to be data bound eg
Text='<%# DataBinder.Eval(DataSet11, "Tables[COMPANY].DefaultView.[0].Name") %>'
will the data entered into the textbox update the bound dataset? If so, when in the page processing cycle will it be updated?
 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      06-15-2004
It won't be updated at all. You will need to create an update button and an
eventhandler for that button. You then take the value from the textbox and
place that value into your dataset. From there you have your DataAdapter
update the original data source and refresh the rest of the data by
rebinding all the controls.


"FredBloggs012" <> wrote in message
news:51A43BED-67B1-4FD5-BE49-...
> If I code a textbox text property to be data bound eg
> Text='<%# DataBinder.Eval(DataSet11,

"Tables[COMPANY].DefaultView.[0].Name") %>'
> will the data entered into the textbox update the bound dataset? If so,

when in the page processing cycle will it be updated?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Re: Noob question - binding data to list box (system.data.datarowview?) David Wier ASP .Net 0 04-17-2008 05:03 PM
Re: Noob question - binding data to list box (system.data.datarowview?) Lloyd Sheen ASP .Net 0 04-17-2008 04:23 PM
Binding data to a text box =?Utf-8?B?Y2hyaXM=?= ASP .Net 1 07-21-2004 12:46 PM
Data Binding - using inline code vs. functions vs. straight binding Jordan ASP .Net 2 02-10-2004 08:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57