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

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>
 
D

Daniel Jeffrey

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
 
N

nick chan

like this

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

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

</asp:placholder>
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top