Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| 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 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
  #1 (permalink)  
Old June 3rd, 2008, 01:25 AM
Registered User
 
Join Date: May 2008
Location: Mumbai, Maharashtra, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default extrernally manipulating user controls

Hi, I have a dropdownlist with values ranging from 1-4. I have a user control with a dropdownlist with no values in it. Thing is , I want to know if there is a way that I can add listitems to the dropdownlist in my user control by selecting a value from the default.aspx dropdownlist.
So if I choose value 1 from the default.aspx dropdownlist, the dropdownlist in my user control will be populated by 1 as a listitem. If I choose 3, then the user control dropdownlist will contain list items, 1,2,3.

Sounds weird, but is there a way around this???


  #2 (permalink)  
Old June 3rd, 2008, 08:48 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah you can do this by have a public function on the usercontrol that adds the selected value from the dropdown on the main page , which auto submits back when the index changes

Lee

  #3 (permalink)  
Old June 4th, 2008, 12:13 AM
Registered User
 
Join Date: May 2008
Location: Mumbai, Maharashtra, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Guys, I have a dropdownlist, and a selectedindexchanged event associated with it. Thing is this event is not firing man, I have switched the autopostback to true and false both, but it fails to fire either ways.

Any idea why its not happening???




Similar Threads
Thread Thread Starter Forum Replies Last Post
User controls dcct84 C# 2 October 28th, 2007 07:20 PM
User controls' content: Chapter 2 User Controls AGS BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 10 July 26th, 2007 05:36 AM
User Controls Lofa ASP.NET 1.0 and 1.1 Basics 2 February 13th, 2006 01:04 PM
User Controls Duncan Pro VB.NET 2002/2003 2 December 1st, 2003 05:41 AM
User Controls raZZa VS.NET 2002/2003 3 July 30th, 2003 07:36 AM





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