473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

drop down list change event

Hey all,

I was wondering againg...on my ASP.NET app I have a drop down list. I've set
the control to AutoPostBack=True. When I run this app, I select something out
of the drop down list and the screen flickers I guess it indicates that the
PostBack has occurred. Is this the accepted behavior?

thanks,
rodchar
Nov 21 '05 #1
4 10735
Well, if you want it to cause a postback (and fire the SelectedIndexChanged
event) every time a new item is selected, then yes, this is the correct
behavior.

If you do not want a postback on every single selection, set
AutoPostBack=False. I personally recommend that you try to make your
application behave this way - postbacks on selection, change, etc. should be
considered a "last resort" on a wep page. Not that they don't have correct
uses, but overuse can kill your usability and performance.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
Hey all,

I was wondering againg...on my ASP.NET app I have a drop down list. I've
set
the control to AutoPostBack=True. When I run this app, I select something
out
of the drop down list and the screen flickers I guess it indicates that
the
PostBack has occurred. Is this the accepted behavior?

thanks,
rodchar

Nov 21 '05 #2
thanks.

"Philip Rieck" wrote:
Well, if you want it to cause a postback (and fire the SelectedIndexChanged
event) every time a new item is selected, then yes, this is the correct
behavior.

If you do not want a postback on every single selection, set
AutoPostBack=False. I personally recommend that you try to make your
application behave this way - postbacks on selection, change, etc. should be
considered a "last resort" on a wep page. Not that they don't have correct
uses, but overuse can kill your usability and performance.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
Hey all,

I was wondering againg...on my ASP.NET app I have a drop down list. I've
set
the control to AutoPostBack=True. When I run this app, I select something
out
of the drop down list and the screen flickers I guess it indicates that
the
PostBack has occurred. Is this the accepted behavior?

thanks,
rodchar


Nov 21 '05 #3
thank you.
"Philip Rieck" wrote:
Well, if you want it to cause a postback (and fire the SelectedIndexChanged
event) every time a new item is selected, then yes, this is the correct
behavior.

If you do not want a postback on every single selection, set
AutoPostBack=False. I personally recommend that you try to make your
application behave this way - postbacks on selection, change, etc. should be
considered a "last resort" on a wep page. Not that they don't have correct
uses, but overuse can kill your usability and performance.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
Hey all,

I was wondering againg...on my ASP.NET app I have a drop down list. I've
set
the control to AutoPostBack=True. When I run this app, I select something
out
of the drop down list and the screen flickers I guess it indicates that
the
PostBack has occurred. Is this the accepted behavior?

thanks,
rodchar


Nov 21 '05 #4
Rodchar,

Real live or in your test situation, in the last situation the answer is no,
there was another question about this that I answered today and I forget
that I had planned to do this to you to when I tested that, I did not see
it.

The screen was as flat as flat could be with this code (I filled the
collection with 6 items and no values)
\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.DropDownList1.AutoPostBack = True
End If
End Sub
Private Sub DropDownList1_SelectedIndexChanged _
(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles DropDownList1.SelectedIndexChanged
TextBox1.Text = DropDownList1.SelectedItem.ToString
End Sub
///
Maybe this helps still something

Cor
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Filiz Duman | last post by:
I was just wondering, is it possible to write into the drop down box in order to jump to a specific item. The reason why I am asking is my drop down box has many items and additionally to the...
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
3
by: excel_hari | last post by:
Hi, I couldnt locate a Classic ASP group hence posting here. One of my colleagues has designed an intranet site and one of the pages has a drop-down box with close to 300 options. I want to...
2
by: Dave A | last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate. The drop down list is quite large so I would prefer to avoid...
3
by: Mike Collins | last post by:
I'm not feeling too smart right now, but I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. Can someone show...
4
by: tjonsek | last post by:
I have two drop down boxes on a form. One feeds the second a list options based on user selection. With the second drop down, I want code that displays dynamic text in a <div> based on whatever the...
7
by: callawayglfr | last post by:
I am building a database in access where I have a drop down box that relates to a text box, that part I have working but when someone selects information from the first drop down I need it to limit...
5
by: Ajith Menon | last post by:
I need to select multiple entries in the drop down list. E.g. Search a string in languages like C#, VB, Java etc. These entries are in drop down. So i need to multi select to search in multiple...
6
by: zacks | last post by:
I have an application I am developing that has a Combo Box that is intended to show a list of available tables in the selected DSN. I have put code in the control's DropDown event handler to clear...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.