FormView
is actually a
Template
based control (That means, you have to define which field to bind to which control inside the
itemtemplate
element.
I didn't run your code, but as I can see, you are not binding your
TextBox
controls (Inside the
FormView
's
ItemTemplate
section) with any data using the
Bind()
Data binding expression. This is the main reason you are not getting any data shown in the UI (Assuming that the other codes are OK).
Here is how to do it (This text box is being bound with the
EntryText
field)
<asp:TextBox runat="server" Width="1000" Text='<%# Bind("EntryText") %>' ReadOnly="true" ID="txtSubject"></asp:TextBox>
You can have a look here for some
FormView
example :
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/formview.aspx[
^]