473,394 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

bind textbox for display & editing

hey guys got a question.
im trying to bind a textbox "at runtime". im creating the conn string, dataset, dataAdapter etc dynamically.
and it keeps erroring out.

<asp:TextBox ID="txtDay1" Runat="server"
TextMode='<%# A39.DataRow["Day1"]%>'></asp:TextBox>

now i have no problem doing this if i hard code my connection string, dataadapter, dataset etc and use the method (databinder eval).

<asp:TextBox ID="txtDay1" Runat="server"
Text='<%# DataBinder.Eval(Ds, "Tables[A39].DefaultView.[0].Day1") %>'></asp:TextBox>

i guess im looking for the best method to display up to 26 columns and nearly all of them be editable (Updated) and was trying to not do this using a DataGrid or DataList and build Templates for each individual cell.

Any Ideas or am I trying to find the easy Way out. This was so easy to do in WinForms.
thanks
rik

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 19 '05 #1
0 1434

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

Similar topics

4
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
0
by: Jodi | last post by:
Hi, I am trying to put a textbox in a template column both for displaying and editing. When I add the following line to the HTML code <%#DataBinder.Eval(Container.DataItem, "comments")%>...
6
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on...
2
by: Jim in Arizona | last post by:
Being new, i experiment a lot and usually get results I'm not hoping for. My current problem is reading from a SQL 2000 table and populating an ASP dropdownlist with a column from the table. The...
0
by: teclioness | last post by:
Hi, I am using gridview for the user to update rows. In a row, there sre two columns, which need to be updated. When the gridview is to be shown, the row should show the values from database....
0
by: David Cox | last post by:
In VB 2005 Express how do you bind controls to a query? For example say I have a table with three columns. Column1 is Gross Weight, Column2 is Truck Weight, Column3 is CropId. I would like to...
0
by: dave | last post by:
I am using sqldatasource and the gridview for editing a number of admin tables. I woud like to use column index number in the following statement <asp:TextBox ID="TextBox1" runat="server"...
7
by: TechnoAtif | last post by:
Hi..There is again a similar problem..Now i;ve got the option values of list?menu box to show the textbox. If the option value of list is yes then the textbox is to be displayed . Can anyone...
2
by: akshalika | last post by:
Hi, I have a repeater control. it dynamically bind textbox or dropdown base on some condition. i want to bind required field validator dynamically for validate textbox or dropdown. here is my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.