Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 October 4th, 2004, 04:52 PM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Repeater and DropDownList with AutoPostBack

Hi All,
I have a list of records that I'm displaying in a repeater. When the user selects something new in one of the dropdownlists (Each record has it's own list), I want to do an AutoPostBack and automatically update that particular record. I can't seem to figure out a way to unique identify a particular dropdownlist with a record number so I can update that particular record. Any help would be appreciated!

Thanks

 
Old October 5th, 2004, 11:38 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Because the dropdownlist exists as a member of one item, you should be able to ask for the DDL's parent in order to the get the repeater item. This is how it works in a datagrid at least. Not positive about how/if it will work in a repeater. Take a look at "dropdownlist.Parent". From there you should be able to get at other objects within that item in order to retrieve some data that identifies the data row that corresponds to the repeater item.





Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoPostBack problem liorlankri ASP.NET 1.x and 2.0 Application Design 1 December 22nd, 2004 09:45 AM
DropDownList within Repeater rodmcleay C# 1 December 17th, 2003 09:33 PM
Listbox w/o Autopostback collie ASP.NET 1.0 and 1.1 Basics 3 November 21st, 2003 01:57 PM
AutoPostBack stu9820 ASP.NET 1.0 and 1.1 Professional 7 September 9th, 2003 03:59 PM
linkbutton and autopostback jtyson ASP.NET 1.0 and 1.1 Basics 0 July 10th, 2003 11:22 AM





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