Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2005, 12:56 PM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datalist checkbox delete

Hi,
I´m new to asp.net
I've been trying to create a datalist with a checkbox so I can delete what it is selected.
I managed to create the datalist with the check box and to get the itemindex of what I select, however I could figure out how to delete.
Can someone help me do this.
This is what I have,
For Each anItem In DataList1.Items
  isDeleted = CType(anItem.FindControl("elim_imprimir"), CheckBox).Checked
  If isDeleted Then
     Dim posi_foto As String = anItem.ItemIndex
  End If
Next

Thanks in advance,

Bayter





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete an item of a xml file from datalist? MTLedari ASP.NET 2.0 Professional 0 April 23rd, 2007 03:27 PM
How i can delete with checkbox maz_alaameri ASP.NET 1.0 and 1.1 Basics 1 December 5th, 2006 05:14 AM
Datalist with checkbox -- how to default checked? jobber99 ASP.NET 1.0 and 1.1 Basics 1 January 30th, 2006 02:52 PM
How to delete labels into a datalist? see07 ASP.NET 1.x and 2.0 Application Design 2 January 13th, 2005 12:43 PM
checkbox in datagrid and delete saman VS.NET 2002/2003 2 May 21st, 2004 12:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.