473,395 Members | 1,766 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.

question regarding AutoPostback dropdown list

Hi there,

I'm using VS.NET 2003, (.NET 1.1.4322) -
I've got dropdown list with about 10 items in it on a web page.
On 2 of the items i'd like the autopostback to occur, whereas if the user
selects the other items i dont want it to occur.

Is this possible?

thanks,
Paul

Feb 1 '06 #1
2 1146
Paul,

Set AutoPostBack to false and handle the client-side onchange event. In the
javascript event handler check what item is selected and, if a postback is
required, make a javascript call to myForm.submit();. If you need to pass
additional parameters to the server, for example to specify the reason for
the postback, you can do it in hidden <input> controls.

Eliyahu

"Milsnips" <mi******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi there,

I'm using VS.NET 2003, (.NET 1.1.4322) -
I've got dropdown list with about 10 items in it on a web page.
On 2 of the items i'd like the autopostback to occur, whereas if the user
selects the other items i dont want it to occur.

Is this possible?

thanks,
Paul

Feb 1 '06 #2
Great, thanks for you're help. i'll give that a try.

regards,
Paul
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
Paul,

Set AutoPostBack to false and handle the client-side onchange event. In
the javascript event handler check what item is selected and, if a
postback is required, make a javascript call to myForm.submit();. If you
need to pass additional parameters to the server, for example to specify
the reason for the postback, you can do it in hidden <input> controls.

Eliyahu

"Milsnips" <mi******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi there,

I'm using VS.NET 2003, (.NET 1.1.4322) -
I've got dropdown list with about 10 items in it on a web page.
On 2 of the items i'd like the autopostback to occur, whereas if the user
selects the other items i dont want it to occur.

Is this possible?

thanks,
Paul


Feb 1 '06 #3

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

Similar topics

2
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is...
4
by: Christian Ista | last post by:
Hello, I have 2 questions : 1. On an ASP.NET page I have several controls (5 TextBox, 1 Dropdown and 1 button) Only the dropdown is AutoPostBack = true, the TextBox are SingleLine When I...
3
by: Jon | last post by:
I am using cascading dropdowns, where the selection in one determines what fills another. In regular ASP I simply loaded a giant dataset into javascript array and when you clicked on one dropdown,...
2
by: Wysiwyg | last post by:
I was hoping to get some opinions on the efficiency of various methods of reusing the same dropdown list data. Here is the situation: Multiple panels on maintenance pages with TAB menus across...
3
by: Patrick Olurotimi Ige | last post by:
I have DropDown List ... that populates some Data..But the DropDown does a postback that retrieves some other DropDown List with Data But i want to add Data to the Dropdpwn list they have...
0
by: kaon | last post by:
Hi, Ive been looking for a way to capture an autopostback event of a dropdownlist in a datagrid control. the scenario is that, ive a datagrid, and there is a dropdownlist column in each of the row...
3
by: indigator | last post by:
I am using ASP.NET 2.0. I have 2 dropdownlists in my page. One holds the list of all the countries and other holds the list of all States. When the user selects the country as United States, I want...
0
by: riley.derrick | last post by:
To all the ASP.NET 2.0 Gurus, I am having a bit of a problem. Here is the situation. I have a created a web form that does the following. Has 2 dropdown lists that are databound to a SQL...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview with several template columns and a few command button columns, column 1 and 2 are dropdown boxes, column 3 is a checkbox and column 4 is a text box, followed by command button...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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.