Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 07-03-2007, 05:01 PM   #1
Default How to retrieve data from DetailsView Edit??


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
sakhu is offline   Reply With Quote
Old 07-05-2007, 10:40 PM   #2
sakhu
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default hi
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
sakhu is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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