DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 8 Aug 2007 10:44:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Shehab Kamal


TextBox Binding in 2.0   
This is probably an easy question but I really can’t figure the answer.
In 1.1 you can add a DataSet to your page and bind a TextBox to a column in 
a table in the DataSet, how can this be done in 2.0?

I’m using VWD Express. I cannot drag a DataSet to the designer surface, so I 
declared a protected DataSet in the code behind file. I don’t know what to 
write in the Text property of the TextBox. Using Text=’<%# 
Bind(“DataSet.Table[0].Column”) %>’ results in nothing. Actually how to do 
this even if I’m using an ObjectDataSource, the TextBox doesn’t have neither 
a DataSource nor DataSourceID properties. How can I replicate the 1.1 binding 
in 2.0?

In 1.1 the Text property is set to <%# DataBinder.Eval(MyDataset, 
“Tables[TableName].DefaultView.[0].ColumnName”), how can I make such a 
binding in 2.0?

Note: The TextBox is on the page directly not in a GridView, if it is in a 
GridView Bind will work because it has a DataItem to bind to.
Date:Wed, 8 Aug 2007 10:44:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us