473,383 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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

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

Jul 17 '08 #1
6 1589
have u tried placeholder instead? sorry not much experience here

On Jul 17, 3:10*pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
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 <trand 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>
Jul 17 '08 #2
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

"nick chan" <zz*******@gmail.comwrote in message
news:df**********************************@a1g2000h sb.googlegroups.com...
have u tried placeholder instead? sorry not much experience here

On Jul 17, 3:10 pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
>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 <trand 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>
Jul 17 '08 #3
like this

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

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

</asp:placholder>

On Jul 17, 7:12*pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
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

"nick chan" <zzzxtr...@gmail.comwrote in message

news:df**********************************@a1g2000h sb.googlegroups.com...
have u tried placeholder instead? sorry not much experience here
On Jul 17, 3:10 pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
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 <trand 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>
Jul 18 '08 #4
or have u tried

Page.Databind on PageLoad?


On Jul 17, 4:39*pm, nick chan <zzzxtr...@gmail.comwrote:
have u tried placeholder instead? sorry not much experience here

On Jul 17, 3:10*pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
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 <trand 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>
Jul 18 '08 #5
thanks I will try these
Dan

"nick chan" <zz*******@gmail.comwrote in message
news:07**********************************@l28g2000 prd.googlegroups.com...
or have u tried

Page.Databind on PageLoad?


On Jul 17, 4:39 pm, nick chan <zzzxtr...@gmail.comwrote:
>have u tried placeholder instead? sorry not much experience here

On Jul 17, 3:10 pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:
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 <trand 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>
Jul 18 '08 #6
placeholder worked great
strange TR doesnt - think that is a bug

Dan

"Daniel Jeffrey" <da**************@hotmail.comwrote in message
news:OV**************@TK2MSFTNGP06.phx.gbl...
thanks I will try these
Dan

"nick chan" <zz*******@gmail.comwrote in message
news:07**********************************@l28g2000 prd.googlegroups.com...
>or have u tried

Page.Databind on PageLoad?


On Jul 17, 4:39 pm, nick chan <zzzxtr...@gmail.comwrote:
>>have u tried placeholder instead? sorry not much experience here

On Jul 17, 3:10 pm, "Daniel Jeffrey" <daniel_c_jeff...@hotmail.com>
wrote:

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 <trand 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>
Jul 18 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary Bagen | last post by:
Hello, I am working on a page transition scheme and was wondering what the quickest way is to find out which ASP.NET controls need to be inside a form with runat=server. I've determined that...
2
by: ola | last post by:
Please Help. I get this error in one of my files Control 'AdminTabControl1_lnk0' of type 'LinkButton' must be placed inside a form tag with runat=server.
9
by: Jay | last post by:
Where is there a good article/description on why everything is runat=server. I just can't seem to grasp why ALL tags (even table tags) are runat server in dotnet. Thank You
3
by: Ferryandi | last post by:
hi, i have created a button link like this and attach it to placeholder in code behind linkbutton1 = New LinkButton linkbutton1.Text = "Link Button linkbutton1.ID = "Link1"...
3
by: Russ | last post by:
I have a usercontrol that is loaded by a webform. The usercontrol populates a datagrid which users need the capability to export data from the grid to Excel. The problem is that when I attempt to...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
2
by: =?Utf-8?B?TmV0d29yeHBybw==?= | last post by:
Whenever an ASP.NET server-side control is processed, the client form is repainted from the top forcing users to scroll back to where they were on long forms. How can I work around this issue?
3
by: pbd22 | last post by:
Hi. How do I add the runat=server attribute on a buttonfield link dynamically? thanks!
2
by: André | last post by:
Hi, i get sometimes an very unexpected error: "A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property" at line: If j = 1 Then txta(i).Focus() There is a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.