473,371 Members | 1,677 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,371 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 10733
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.