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> 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>
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>
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>
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>
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>
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>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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.
|
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
|
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"...
|
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...
|
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...
|
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?
|
by: pbd22 |
last post by:
Hi.
How do I add the runat=server attribute on a buttonfield link
dynamically?
thanks!
|
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...
|
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...
|
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...
|
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...
|
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$) {
}
...
|
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...
|
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...
|
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
|
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...
|
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...
| |