Problems with <EditItemTemplate> and setting DataField for textbox

D

dani

Hi Everyone,

I wanted to create a large text box (a textarea) for displaying some
large information for editing. I am using a DetailsView control with
an SQL data source, but every time I try to update my custom textbox
field it doesn't save to the database. I have done extensive testing /
researching and have found that this asp:textbox is not even in
the )OldItems or NewItems arrays of information. Can someone please
help me??? Here is my code:
---------begin code snipit-----------------
<Fields>
<asp:BoundField DataField="fldAlbumID" HeaderText="Index"
ReadOnly="true" />

......
<asp:TemplateField HeaderText="Album Release Notes"
HeaderStyle-VerticalAlign="top" ConvertEmptyStringToNull="false">

<EditItemTemplate>
<asp:TextBox runat="server" ID="fldAlbumReleaseNotes"
AutoPostBack="true" TextMode="MultiLine" Text='<%#
Replace(Eval("fldAlbumReleaseNotes"),"<br/>",vBCrlF) %>' Height="200"
Width="400" />

</EditItemTemplate>
</asp:TemplateField>
.....
</Fields>
<UpdateParameters>
......

<asp:parameters name="FldAlbumRelaseNotes" type="string" />
.....
</UpdateParameter>
-------------end code snipit--------------
How do you link this text box to a data field or just how do you get
the data from this field into the newfields database? Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top