Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 November 27th, 2013, 09:23 AM
Registered User
 
Join Date: Nov 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question ASP Gridview need urgent hlp

I have a asp web page divided into two potions on the left i have a checkbox list which is been populated from the database and on the right hand side of the page i have a grid view, What i reallly want to do is when the user click a specific checkbox i want to load the data of the checkbox to the gridview. (please note the data would be loaded manually, I mean programmatically as per the data from the checked button) i would be having a delete button in the gridview so incase the user clicked on the wrong checkbox he can either uncheck it or click delete from the gridview which would not actually reflect the database as all this is happening at the webpage client page and even remove the entry from the gridview.


I need help on how to work about this as i have tried each and every solution but non has worked.

Thanks
 
Old February 5th, 2014, 08:48 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

what you would want to do is add the click event handler to the check box, set the property that CausesPostback="true". this will cause the form to post back when the check box is cheked. In the checkBox_Click event rebind the grid view to what ever data you want base on whate check box is checked.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent:Gridview Change Colour ashvinm ASP.NET 2.0 Basics 1 March 4th, 2008 09:19 AM
array hlp mastrgamr C++ Programming 2 January 22nd, 2007 09:24 AM
GridView Sort (Top Urgent ) msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 02:34 AM
Insert, update, delete in gridview-!!! URGENT !!! dagad ASP.NET 2.0 Basics 0 September 27th, 2006 06:24 AM
code to read in Access tables to a dataset - hlp! ruairi ADO.NET 4 February 12th, 2005 06:03 PM





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