Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Programming : Deleting multiple records with check box selection


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2009
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default Deleting multiple records with check box selection

I am trying to allow a delete button to remove and delete from the db records that have the check boxed checked. I have tried alot of different ways and no luck. Here is my code


The select all works fine no need to touch that but once i choose what i want deleted via checking the boxes and pressing delete nothing works when trying to delete them. If anyone can help thanks

Code: <form action="mailbox.php" method="post">
<table width="90%" align="center">
<tr><td bgcolor="#33CCFF"><input type="checkbox" name="checkall2" onclick="checkUncheckAll(this);"/>
Select All | <input name="delete" type="submit" value="Delete"></td>
</tr></table>

<table width="90%" align="center">
<tr>
<td width="5%">
<tr>
<td align="left">&nbsp;</td>
<td width="1%"></td>
<td width="28%" align="left">Email</td>
<td width="29%">Subject</td>
Reply With Quote
  #2 (permalink)  
Old 12-29-2009
Junior Member
 
Join Date: Dec 2009
Posts: 4
Default

Several times while developing web applications we need to implement functionality to delete bulk / multiple rows or records in Gridview using checkbox to select rows / records to be deleted with confirmation dialog box.

By using following code you can achieve it

<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"
DataSourceID="SqlDataSource1"
ShowFooter="true">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
</ItemTemplate>
<FooterTemplate>
<asp:Button ID="btnDelete" runat="server" Text="Delete"
OnClick="btnDelete_Click"
OnClientClick="return DeleteConfirmation();"/>
</FooterTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ID"
HeaderText="ID"
SortExpression="ID" />
<asp:BoundField DataField="Name"
HeaderText="Name"
SortExpression="Name" />
<asp:BoundField DataField="Location"
HeaderText="Location"
SortExpression="Location" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [ID], [Name], [Location]
FROM [Details]"></asp:SqlDataSource>
Reply With Quote
  #3 (permalink)  
Old 07-25-2010
Senior Member
 
Join Date: Mar 2010
Posts: 186
Default

Hello,

Dominoes is a series of popular board games of skill played with tiles.

Dominoes is a 2-player game of skill using 28 dominos where each player gets 7 dominos at start. There are 3 variations: Five-Up (aka Muggins or All Fives), Draw and Block. The goal in dominos is to be the first to get the agreed-upon number of points (100 - 500). In Five-Up, points are scored during the play by making the exposed ends of the domino chain total to a multiple of five. The winner at the end of each hand also scores points for all the pips remaining in the other player's hand. Players can select 7-bone or 9-bone hand variations.

Under the 1968 UK Gaming Act, games classified as forms of skill (non-gambling) include dominoes, cribbage, chess, and bridge.

And if you are having a problem about Dominoes tricks and How to recording top scores.Gamecolony can help you find what you need.

Thanks
_____________________
Dominoes
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 07:06 PM.