473,395 Members | 1,554 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,395 software developers and data experts.

dropdowns

I want to use auto postback with a dropdown box. Let's say index 3 is
currently selected. Is there a way to reselect the current value so a
postback occurs.

Right now it only changes with the SelectedIndexChange!

Any ideas?

Otherwise I need to select a different index and reselect the original to
get the postback needed. This wont occur too often in the application but I
need the functionality there for the user.

Thanks
Nov 18 '05 #1
2 847
On Wed, 28 Jul 2004 08:28:53 -0500, "Brian Shannon" <bs******@lbrspec.com> wrote:
I want to use auto postback with a dropdown box. Let's say index 3 is
currently selected. Is there a way to reselect the current value so a
postback occurs.

Right now it only changes with the SelectedIndexChange!

Any ideas?

Otherwise I need to select a different index and reselect the original to
get the postback needed. This wont occur too often in the application but I
need the functionality there for the user.

Thanks

Try AutopostBack="true"
Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
Nov 18 '05 #2
It is a perfectly reasonable and acceptable thing to formulate your own call
to __doPostBack in client side script and cause a postback, simulating a
change of index in your DropDownList. You don't need a hidden button or
some of the other things you see folks do.

To help you do that, Microsoft has provided the GetPostBackEventReference
method in the ASP.NET framework. You can call the
GetPostBackEventReference method to generate the text of the client side
call to the __doPostBack clientside method.

Dale Preston
MCAD, MCSE, MCDBA
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
I want to use auto postback with a dropdown box. Let's say index 3 is
currently selected. Is there a way to reselect the current value so a
postback occurs.

Right now it only changes with the SelectedIndexChange!

Any ideas?

Otherwise I need to select a different index and reselect the original to
get the postback needed. This wont occur too often in the application but I need the functionality there for the user.

Thanks

Nov 18 '05 #3

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

Similar topics

2
by: Crescionini Sascha | last post by:
Hello NG If I let appear a DIV over a HTML site with dropdowns, this dropdowns are still visible. Is there a way to push them to the back? All other form elements arent visible. greets...
0
by: Jeffrey | last post by:
Hi... I have several dropdowns located in a datagrid footer. Now say i modify the selection in dropdown1. I want to refresh the content of the other dropdowns with the result of a database...
3
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...
1
by: Andy | last post by:
What I want to do is to populate multiple dropdowns when editing. Presumably... a) I should use a DataReader so that I can get each ResultSet for each dropdown control, and that should cut down...
2
by: bingomanatee | last post by:
I have developed what amounts to a fancy shopping cart wizard for a scientific instrument using VB.NET. We are having some disturbing phenomena relating to dropdown controls. On my system and...
0
by: nkparimi | last post by:
Hi, Here's what I'm trying: given an html table, to freeze the column headers and/or left column in IE. I understand that this is possible thru style sheets in IE, as suggested in the following:...
3
by: Simon Harvey | last post by:
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...
1
by: Stimp | last post by:
I have 3 dropdowns: country, county and district. I'm using ajax to dynamically populate the county and district dropdowns when country dropdown is changed (and similarly the district dropdown...
0
by: bogorman | last post by:
Am trying to add a "video" to a webpage which is based on a template containing a javascript menu. The site has hundreds of pages all based on this template and the menu works fine The page can be...
0
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...
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
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
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
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
Oralloy
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.