Hi,
I have a quick question. I am displaying all the orders that are active. I
am making use of a datarepeater with checkboxes to display data and a submit
button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and click on
the submit button should update the database.
How do I capture the event such that only those check boxes that have been
checked are updated and not others?
Thanks,
Stephen. 3 1631
I assume that the data the repeater is showing is in a DataTable in a
DataSet, right? If so, add a DataColumn to that table to store a Boolean
value that will be set via the checkbox in the repeater.
This way, when you call the Update method of the DataAdapter to migrate your
changes to the original data source, you can write your update command to
update only those records that have that Boolean flag set to true.
One note here, though. Repeater controls do not support editing of data, so
you should use either a DataList control or a DataGrid control.
"Stephen" <st*********@ho tmail.com> wrote in message
news:OZ******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I have a quick question. I am displaying all the orders that are active. I am making use of a datarepeater with checkboxes to display data and a
submit button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and click
on the submit button should update the database.
How do I capture the event such that only those check boxes that have been checked are updated and not others?
Thanks, Stephen.
Hi Scott,
Do you have any sample example or code that i can take a look at
Thanks,
Stephen.
"Scott M." <s-***@nospam.nosp am> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I assume that the data the repeater is showing is in a DataTable in a DataSet, right? If so, add a DataColumn to that table to store a Boolean value that will be set via the checkbox in the repeater.
This way, when you call the Update method of the DataAdapter to migrate
your changes to the original data source, you can write your update command to update only those records that have that Boolean flag set to true.
One note here, though. Repeater controls do not support editing of data,
so you should use either a DataList control or a DataGrid control.
"Stephen" <st*********@ho tmail.com> wrote in message news:OZ******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I have a quick question. I am displaying all the orders that are active.
I am making use of a datarepeater with checkboxes to display data and a submit button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and
click on the submit button should update the database.
How do I capture the event such that only those check boxes that have
been checked are updated and not others?
Thanks, Stephen.
Just paraphrasing here, so you will need to check this for accuracy.
'Assuming you have a DataSet that is populated already
'Create new column of the Boolean type and add to the table in the DataSet
dim dc as New DataColumn("Upd ateColumn",bool ean)
dsProds.Tables( 0).Columns.Add( dc)
'When handling the Update button from the list control,
'check the checkbox of the selected row (use FindControl(con trolName))
'to see if the checkbox was checked for that row
'As part of your UPDATE commandText add a WHERE clause
'that checks the row(s) for the boolean column for true
UPDATE .... WHERE "UpdateColu mn" = True
"Stephen" <st*********@ho tmail.com> wrote in message
news:OX******** *****@TK2MSFTNG P09.phx.gbl... Hi Scott,
Do you have any sample example or code that i can take a look at
Thanks, Stephen.
"Scott M." <s-***@nospam.nosp am> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I assume that the data the repeater is showing is in a DataTable in a DataSet, right? If so, add a DataColumn to that table to store a
Boolean value that will be set via the checkbox in the repeater.
This way, when you call the Update method of the DataAdapter to migrate your changes to the original data source, you can write your update command
to update only those records that have that Boolean flag set to true.
One note here, though. Repeater controls do not support editing of
data, so you should use either a DataList control or a DataGrid control.
"Stephen" <st*********@ho tmail.com> wrote in message news:OZ******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I have a quick question. I am displaying all the orders that are
active. I am making use of a datarepeater with checkboxes to display data and a
submit button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and click on the submit button should update the database.
How do I capture the event such that only those check boxes that have been checked are updated and not others?
Thanks, Stephen.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: muhamad |
last post by:
Hi,
How can I use the DataRepeater in CSharp , this control exists in VB6 ,i
never used it .
I want to insert into the DataRepeater TextBoxs that will show all the time
data from the database .
Does anyone have an example or direction ?
|
by: craigkenisston |
last post by:
Microsoft's datarepeater sample causes warning in the IDE.
Hi,
The code here :
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpgenref/html/cpconrepeaterwebservercontrol.htm
Causes the following warnings in the IDE :
|
by: |
last post by:
Hi, NG!
Is there any updated version (.Net) of the Datarepeater control or do I have
to use the old (VS6.0) version?
Thanks.
pax
|
by: Neven Klofutar |
last post by:
Hi,
How can I bind ArrayList of my object to DataRepeater ?
I have 2 classes:
public class Movie {
private String _Name = "";
private Double _Price = 0;
|
by: Chris Leffer |
last post by:
Hi.
I have a DataRepeater that is filled with the results of a query based
on four criteria fields. If one of these criterias is informed, I don't
need to display a certain column in my DataRepeater. I can do that using
an If expression on the HTML to conditionally show the column, but is it
possible to do that using code-behind only?
Regards,
Chris Leffer
| |
by: Stephen |
last post by:
Hi,
Does anyone have a sample of a DataRepeater with Radiobuttons?
I am trying to have a datarepeater with radiobuttons but for some reason
(suppose there are 10 rows) only the first row has a radiobutton and none
other
Thanks,
Stephen
|
by: Stephen |
last post by:
Hi,
I have a quick question. I am displaying all the orders that are active. I
am making use of a datarepeater with checkboxes to display data and a submit
button to insert into the database.
suppose i want to make the orders inactive using the checkboxes and click on
the submit button should update the database.
How do I capture the event such that only those check boxes that have been
|
by: Arsalan |
last post by:
What is the equivalent of DataRepeater control in VB.NET ?
|
by: =?Utf-8?B?QW1qYWQ=?= |
last post by:
Hi i have datarepeater in which i have textboxes, how to create
txtCustID_TextChanged event in datarepeater like simple textbox its easy
double click it and it create automatically the event but in data repeater we
have multiple textbox and cannot directly create event handler for that
textbox has repeated several time.
|
by: Tony K |
last post by:
I downloaded the new VB PowerPack 3.0 and began using the DataRepeater. I
have 2 DateTimePickers, current and future. When I add a new item, to the
datarepeater, I want to automatically add 1 year to the future
DateTimePicker.
The DataRepeater contains fields from the Service table of my DataSet.
Here is my code.
Try
Me.DataRepeater1.AddNew()
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |