![]() |
|
|
|
#1 |
|
Hi all
I have following code to display data in DetailsView, but now for editing the dataset from DetailsView I need to read data fromt eh textbox of DetailsView, how can i do that?? <asp:templatefield headertext="Module Weight" > <itemtemplate> <asp:label id="FirstNameLabel" Text= '<%# Eval("au_fname") %>' runat="server"/> </itemtemplate> <Edititemtemplate> <asp:TextBox id="LastNameLabel" Text= '<%# DataBinder.Eval(Container.DataItem,"Model_Wt_kg") %>' runat="server"/> </Edititemtemplate> </asp:templatefield> In C# code behind to display data in these fields the code which is working fine: dbcon.Open(); adp = new OleDbDataAdapter(sqlStmt,dbcon); adp.Fill(ds, "Product"); closeConnection(); table1 = ds.Tables["Product"]; sakhu |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2007
Posts: 2
|
I can now read the data from text box, but those data which are displayed from database, nto the data enteretd by user. What shall i do to read the data entered by user in detailsview.
sakhu |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wonderful data input with web reporting tool | freezea | Software | 0 | 09-09-2009 05:30 AM |
| i need eclipse code for Retrieve data from an oracle database | little programmer | Software | 0 | 04-19-2007 01:14 PM |
| DetailsView (Insert, Update, Delete) | azeem | Software | 0 | 10-22-2006 02:01 PM |
| Address Bus and External Data Bus Confusion | LoXodonte | A+ Certification | 1 | 04-18-2006 10:09 PM |
| Re: Backing up data to reinstall or replace a Operating system? | Barry Watzman | A+ Certification | 0 | 08-21-2003 06:59 PM |