Issues with TR and FormView data Bind when TR is Runat=Server

  • Thread starter Thread starter Daniel Jeffrey
  • Start date Start date
D

Daniel Jeffrey

Hello,

I am using an ObjectDataSource with a Custom DataObject etc.

Everything is working fine, except when I use a Bound control in a Table Row
that is runat="server"

As you can see below - i have commented out the code that causes this to
fail. Eg when i remove <tr> and replace with the commented out line, the
binding does not update.

It works for showing the data, just not updating the CustomObject.

Please help.


<%--<tr style="text-align: left" runat="server" id="SiteTR">--%>
<tr>
<td>
<strong>Site : </strong>
</td>
<td>
<asp:DropDownList ID="SiteDropDown" runat="server"
SelectedValue='<%# Bind("TXSITE") %>' DataSourceID="SiteDataSource"
DataTextField="TXSITE" DataValueField="TXSITE" ></asp:DropDownList>
</td>
</tr>
 
not but not sure how that would work

pls be aware if I make the TD runat=server it works fine, just the TR
strange hey !

Dan
 
like this

<asp:placeholder id="plc" runat="server">

<tr>
.
.
.
.
.
</tr>

</asp:placholder>
 
Back
Top