Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 20th, 2007, 04:58 AM
Registered User
Join Date: Sep 2007
Location: Patna, Bihar, India.
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:05 AM.

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