Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 January 9th, 2006, 05:46 AM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DropDownList User controls asp.net 2.0

I have a user Control that has a dropdownlist in it. I have a code beside page that allows me to add values to the Dropdownlist. I then place the user Control on a normal .aspx page

Every thing works fine,

However I also have a button on the .aspx page

The Button on the .aspx page is set to retrieve the property of the selected value in the dropdownlist (DDL).

This too works fine however the Problem that I get is that the DDL is reset to the top value when I hit the list so all I ever get is the top value in the list.

I am using 'if not ispostback' to prevent the data being reloaded when I press the button.

I am quite new to VB.NET though having been MCSE since NT4 days.

Any help would be appreciated

Cheers

Rob
Stevens


 
Old January 9th, 2006, 06:18 AM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem solved I had the the value of each item in the drop down list was the same[:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Passing Params to User Controls in ASP 2.0 (VB) gcm_uk ASP.NET 2.0 Basics 8 April 30th, 2007 01:35 PM
DropDownList in ASP.NET shurabhavesh ASP.NET 1.0 and 1.1 Basics 3 June 1st, 2005 09:25 AM
VB6 to .NET User Controls mckly VB.NET 2002/2003 Basics 1 June 23rd, 2004 09:39 AM
.Net User Controls - Property Persistance Prob Subhash1275 VS.NET 2002/2003 0 August 15th, 2003 04:03 AM





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