Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 26th, 2003, 05:14 AM
Registered User
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with postback

I've got three controls:
a drop down list (ddlClienti)
two listo boxes
all of them have got
autopostback = true

when I select a value from the DDL i fill the list box
then when I select a value from the first listbox I fill the second list box

I've put some code con the:
ddlClienti_SelectedIndexChanged
to fill the first listbox that catch the selected value:
this.ddlClienti.SelectedValue
and load the values to fill the first listbox. it works fine.

When I try to do the same with the first listbox (lbCantieri) I've got problems.
The first time I enter in the
lbCantieri_SelectedIndexChanged
but the
this.lbCantieri.SelectedValue;
always is the first value, even if I select another one.

the second time I select a value from lbCantieri it even do not enter in lbCantieri_SelectedIndexChanged... I do not understand what's happening...

Could someone help me?
Thanks!

 
Old September 26th, 2003, 07:52 AM
Registered User
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

solved, it was a stupid thing! :-)






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with viewstate and postback hertendreef ASP.NET 2.0 Professional 1 May 31st, 2008 04:05 PM
Postback problem dbrook007 ASP.NET 2.0 Professional 3 May 8th, 2008 01:02 AM
Postback Problem dbrook007 ASP.NET 2.0 Professional 1 April 1st, 2008 06:16 AM
Problem with Postback and Multiviews ftm BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 August 16th, 2007 09:19 AM





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