Wrox Programmer Forums
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 September 16th, 2004, 11:13 AM
Authorized User
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changes on a Form


Is there a way to select what textboxes & DDL get updated on a update command?

Here's my situration:

I have a form, with txtName, txtAddress, ddlCity, ddlProvince, txtPostalCode. Then a button called Save.

If the contents/values in ddlCity and ddlProvince change, when I click Save I want the related fields in DB updated. If only one of these change I want the other NOT to update once I click save.
Futhermore, if neither is changed, I only want the txtboxes to be updated.

Please help...I think this is very simple, but I'm not having a good day...
Thanks in Adavnce,

Old September 16th, 2004, 11:23 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Sure, that probably could work. You just need to code it that way in the UpdateCommand event handler. You need to get the values from the controls (via e.item.findcontrol("<id>")), and update as needed.

Here is an example of the UpdateCommand from MSDN. Just apply your logic to it.


Old September 16th, 2004, 12:52 PM
Authorized User
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts

Ok. But I am not using a datagrid...I am using a form with DDL..

I am a little confused..


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set a form as startup form in vb.net 2.0 mallikalapati .NET Framework 2.0 1 February 21st, 2008 09:19 AM
Close all MdiChield form from open one form/Button salman .NET Framework 2.0 6 December 10th, 2007 03:21 AM
Firefox Error when Form Floated / Form locks socoolbrewster CSS Cascading Style Sheets 5 October 6th, 2007 09:59 PM
How to refresh owner form on closing of child form akumarp2p C# 2005 0 December 22nd, 2006 10:27 AM
parent form from child form - urgent plz netfresher C# 1 November 8th, 2006 06:59 PM

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