Hi everyone,
I keep getting a problem with dropdownlist controls. It sounds really stupid,
but my app is screwed as long as this keeps happening.
It seems to spontaneously happen and then I cant fix it without rebuilding
the whole page from scratch! Not Fun. :-(
So whats happening is I have my dropdowns on the page. The user comes along
and selects an option, but when the user submits the page,. its as if nothing
was changed.
The dropdowns all reset themselves to the default values. No modified value
reaches the server so its not just a view state thing (I think).
So basically, my dropdowns just dont work. Bear in mind, that these were
all working perfectly before. I then do some trivial work to the page - adding
controls and the like, and the whole thing just buggers up!
Can anyone think whats happening here? What would cause dropdown controls
to just stop sending their values and reset themselves?
If anyone at all has even the stupidist suggestion I would be so grateful
if you could tell me cos this is getting really serious. Its supposed to
be live now!
:-(
Thanks to anyone who can help
Simon 3 1204
Simon,
Do your dropdown controls have their AutoPostback property set to "true"?
This is required if you want a change by the user to cause a postback
and fire the SelectedIndexChanged event where you can handle the event.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Simon Harvey" wrote: Hi everyone,
I keep getting a problem with dropdownlist controls. It sounds really stupid, but my app is screwed as long as this keeps happening.
It seems to spontaneously happen and then I cant fix it without rebuilding the whole page from scratch! Not Fun. :-(
So whats happening is I have my dropdowns on the page. The user comes along and selects an option, but when the user submits the page,. its as if nothing was changed. The dropdowns all reset themselves to the default values. No modified value reaches the server so its not just a view state thing (I think).
So basically, my dropdowns just dont work. Bear in mind, that these were all working perfectly before. I then do some trivial work to the page - adding controls and the like, and the whole thing just buggers up!
Can anyone think whats happening here? What would cause dropdown controls to just stop sending their values and reset themselves?
If anyone at all has even the stupidist suggestion I would be so grateful if you could tell me cos this is getting really serious. Its supposed to be live now!
:-(
Thanks to anyone who can help
Simon
After the user submits the form, how are you getting the values from
the drop downs?
After the form is submitted does yourDropDown.SelectedValue = "" - or
the default value?
Have you tried Request.Form("youDropDown")? Does that still equal ""?
Can you reply back with some code for us?
Jeremy Reid http://blackstaronline.net/hgtit
are you filling up your combobox each time the page loads? did you use "if
(!Page.IsPostBack)" is not, you should, it's probably your problem.
I hope it helps
ThunderMusic
"Simon Harvey" <no******@hotmail.com> wrote in message
news:94*************************@news.microsoft.co m... Hi everyone,
I keep getting a problem with dropdownlist controls. It sounds really stupid, but my app is screwed as long as this keeps happening.
It seems to spontaneously happen and then I cant fix it without rebuilding the whole page from scratch! Not Fun. :-(
So whats happening is I have my dropdowns on the page. The user comes along and selects an option, but when the user submits the page,. its as if nothing was changed. The dropdowns all reset themselves to the default values. No modified value reaches the server so its not just a view state thing (I think).
So basically, my dropdowns just dont work. Bear in mind, that these were all working perfectly before. I then do some trivial work to the page - adding controls and the like, and the whole thing just buggers up! Can anyone think whats happening here? What would cause dropdown controls to just stop sending their values and reset themselves?
If anyone at all has even the stupidist suggestion I would be so grateful if you could tell me cos this is getting really serious. Its supposed to be live now!
:-(
Thanks to anyone who can help
Simon
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: doltharz |
last post by:
Please Help me
i'm doing something i though was to be REALLY EASY but it drives me
crazy
The complete code is at the end of the email
(i mean newsgroup article),
i always use Option...
|
by: waschbaer2 |
last post by:
Hi!
What's the proper Visual Basic for Applications (VBA) code for reseting
the menu bar and the tool bar in Access.
Thanks in advance,
Markus
|
by: Damon |
last post by:
I am working on a site in which I would like to have two dropdowns that will
allow a user to navigate through the administrative pages of the site. The
first would allow the user to choose the...
|
by: gregory_may |
last post by:
Is there any options in VS 2005 to better handle case issues in C# (Similar
to VB.Net)?
|
by: sbart |
last post by:
I am programing in asp.net vb using AjaxToolkit cascadingDropDown.
I do not have access to AjaxToolkit cascading dropdown event handlers.
I have a series of dropdowns. The selection from one of...
|
by: Bels |
last post by:
I am currently designing a real estate website using Dreamweaver CS3, php, MySQL on a Mac. On it is a 'property search' form that queries the property database. The form consists of 5 dropdown lists....
|
by: d0353101 |
last post by:
Hi,
I am having 2 dropdowns on my page. The values in both the drop downs have to be populated through
DataBase.
Problem : I dont know how to populate the second Dropdown automatically if...
|
by: d0353101 |
last post by:
Hi,
I am having 2 dropdowns on my page. The values in both the drop downs have to be populated through DataBase.
Problem : I dont know how to populate the second Dropdown automatically if...
|
by: phanimadhav |
last post by:
HI experts,
This is phanimadhav.I have small problem with jquery.Actually i implemented jqery for submit button conformation. But whenever i click the jquery conformation box all my...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |