Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 20th, 2007, 04:58 AM
Registered User
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filtering Template columns in Detailsview


I am using a Detailsview control for inserting/updating the data. The detailsview has two template columns for taking two input for State and Cities using Dropdownlist. The StateDropdownlist is using StateDataSource as its datasource and CityDropdownlist is using CityDataSource's GetCityByState method as its datasource which has StateCode as its inputparameter.

All I wanted to do is to filter the citydwopdownlist based on the selection from state dropdownlist.

On CityDataSource_Selecting event I tried to pass

 e.InputParameters["StateCode"] = Convert.ToString(((DropDownList)(DetailsView1.Find Control("StateDropDownlist"))).SelectedValue);

But I am not able to filter the City List based on the State selection.

Any other way to do it?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Columns in DetailsView madhusrp ASP.NET 2.0 Basics 0 April 16th, 2007 07:54 AM
Filtering Columns in dataview ramesh055 ASP.NET 1.0 and 1.1 Professional 1 November 3rd, 2006 03:51 PM
Template Columns in a Datagrid Greg Griffiths ASP.NET 1.0 and 1.1 Basics 1 October 28th, 2004 08:02 AM
Template Columns in DataGrids jbenson001 ASP.NET 1.x and 2.0 Application Design 19 September 19th, 2004 08:48 AM
Template Columns in DataGrids jbenson001 ASP.NET 1.x and 2.0 Application Design 3 March 12th, 2004 11:01 AM

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