473,396 Members | 1,970 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,396 software developers and data experts.

Some repeater items not updating when database updates

I have a repeater in which I have a hidden field (input type =
hidden), a textbox (asp:TextBox), a checkbox (input type = checkbox)
and a label (asp:Label). I have bound all four items to the same bit
field in a dataset, and when the items are first bound, all four are
correctly databound. For example, if the stored procedure returns 1
for the value of the field, the value of the hidden field is True, the
text that appears in the textbox and label is True, and the checkbox
is checked. If I make a change to the value in the database by
unchecking the checkbox and saving, after postback (I do rebind the
repeater), the label text is now False, as it should be, and the
checkbox is unchecked. However, the hidden field value and textbox
text are both still True. I would be extremely grateful if anybody
could explain to me why the hidden field and textbox do not get
updated. I originally only had a hidden field and checkbox, but as I
could not solve why the hidden field value was not updating, I added
the label and textbox to try to aid my investigation. To ensure that
the data being a bit field was not the problem, I produced the same
results using a text field in the stored procedure. EnableViewState is
set to False at the Page level.
Sep 29 '08 #1
1 1992
If you could post your code (both the declarative from the *.aspx file and
the codebehind where you call the DataBind() method), it might help me and
others help you find your problem.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

<ce*******@googlemail.comwrote in message
news:30**********************************@79g2000h sk.googlegroups.com...
>I have a repeater in which I have a hidden field (input type =
hidden), a textbox (asp:TextBox), a checkbox (input type = checkbox)
and a label (asp:Label). I have bound all four items to the same bit
field in a dataset, and when the items are first bound, all four are
correctly databound. For example, if the stored procedure returns 1
for the value of the field, the value of the hidden field is True, the
text that appears in the textbox and label is True, and the checkbox
is checked. If I make a change to the value in the database by
unchecking the checkbox and saving, after postback (I do rebind the
repeater), the label text is now False, as it should be, and the
checkbox is unchecked. However, the hidden field value and textbox
text are both still True. I would be extremely grateful if anybody
could explain to me why the hidden field and textbox do not get
updated. I originally only had a hidden field and checkbox, but as I
could not solve why the hidden field value was not updating, I added
the label and textbox to try to aid my investigation. To ensure that
the data being a bit field was not the problem, I produced the same
results using a text field in the stored procedure. EnableViewState is
set to False at the Page level.

Sep 30 '08 #2

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

Similar topics

3
by: Tc | last post by:
Hi, I was curious, I am thinking of writing an application that loads a dataset from a database that resides on a server. The question I have is this, if multiple copies of the app will be...
2
by: Mark | last post by:
I am trying to use a Pagable Repeater with checkboxes in ASP.Net, I cannot seem to associate the checkbox with a particular database record so I lose the checked state from page-to-page. Below is...
1
by: MattB | last post by:
OK, never mind my last post. It was easy enough to refer to the table the repeater is bound to, but I made a big, incorrect assumption in that post. In my last post I thought I was successfully...
7
by: charliewest | last post by:
Hello - I'm using a Repeater control to render information in a very customized grid-like table. The Repeater control is binded to a DataSet with several records of information. Within the...
2
by: Alan Silver | last post by:
Hello, I have a form that contains a repeater. A simplified version of the ItemTemplate is shown below (air code)... <br><asp:Literal id="litID" runat="server" /> <br><asp:TextBox id="txtQty"...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: =?Utf-8?B?Um9nZXIweDE=?= | last post by:
Language: c#,.net 2 This looks simple in concept: I have a page that needs to display a userid, a date/time to start vacation, a date/time to end the vacation, and two buttons: one says...
7
by: Brad Baker | last post by:
I am trying to programmatically set a placeholder control in csharp which is nested inside a repeater control between <ItemTemplateand </ItemTemplate> tags, however I am running into problems. I've...
1
by: jl817cn | last post by:
It's strange. The page is using master page, the repeater control is placed in contentplaceholder. In repeater Itemtemplate, there are several labels and textboxes, the value of textboxes is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.