Yes, Autopostback is true, and it doesn't make an iota of difference at all.
HTML snippet and code (behind) snippet is as below:
<asp:dropdownli st id="ddlLoginTyp e" runat="server" Width="163px"
AutoPostBack="T rue"></asp:dropdownlis t>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
If Not Me.Page.IsPostB ack Then
Me.ddlLoginType .Items.Add("Cus tomers")
Me.ddlLoginType .Items.Add("Sal es Rep")
Me.ddlLoginType .Items.Add("Adm in")
End If
End Sub
Private Sub ddlLoginType_Se lectedIndexChan ged(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ddlLoginType.Se lectedIndexChan ged
....
End sub
I have changed the DDL to a Listbox and the same problem.
SelectedIndexCh anged event never ever fires!
Any idea? 4 2527
Is enableViewState set to true for the Page?
Chris Taylor http://dotnetjunkies.com/weblog/chris.taylor
"CW" <a> wrote in message news:#u******** ******@TK2MSFTN GP09.phx.gbl... Yes, Autopostback is true, and it doesn't make an iota of difference at
all. HTML snippet and code (behind) snippet is as below:
<asp:dropdownli st id="ddlLoginTyp e" runat="server" Width="163px" AutoPostBack="T rue"></asp:dropdownlis t> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
If Not Me.Page.IsPostB ack Then Me.ddlLoginType .Items.Add("Cus tomers") Me.ddlLoginType .Items.Add("Sal es Rep") Me.ddlLoginType .Items.Add("Adm in")
End If End Sub Private Sub ddlLoginType_Se lectedIndexChan ged(ByVal sender As Object,
ByVal e As System.EventArg s) Handles ddlLoginType.Se lectedIndexChan ged
...
End sub I have changed the DDL to a Listbox and the same problem. SelectedIndexCh anged event never ever fires! Any idea?
I originally had the <form id="form1" runat="server"> and its associated
<form/> tag around the outside the body tag.
Once I place them inside the body tag, everything seemed to work.
"CW" <a> wrote in message news:#u******** ******@TK2MSFTN GP09.phx.gbl... Yes, Autopostback is true, and it doesn't make an iota of difference at
all. HTML snippet and code (behind) snippet is as below:
<asp:dropdownli st id="ddlLoginTyp e" runat="server" Width="163px" AutoPostBack="T rue"></asp:dropdownlis t> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
If Not Me.Page.IsPostB ack Then Me.ddlLoginType .Items.Add("Cus tomers") Me.ddlLoginType .Items.Add("Sal es Rep") Me.ddlLoginType .Items.Add("Adm in")
End If End Sub Private Sub ddlLoginType_Se lectedIndexChan ged(ByVal sender As Object,
ByVal e As System.EventArg s) Handles ddlLoginType.Se lectedIndexChan ged
...
End sub I have changed the DDL to a Listbox and the same problem. SelectedIndexCh anged event never ever fires! Any idea?
Is enableViewState set to true for the Page?
Chris Taylor http://dotnetjunkies.com/weblog/chris.taylor
"CW" <a> wrote in message news:#u******** ******@TK2MSFTN GP09.phx.gbl... Yes, Autopostback is true, and it doesn't make an iota of difference at
all. HTML snippet and code (behind) snippet is as below:
<asp:dropdownli st id="ddlLoginTyp e" runat="server" Width="163px" AutoPostBack="T rue"></asp:dropdownlis t> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
If Not Me.Page.IsPostB ack Then Me.ddlLoginType .Items.Add("Cus tomers") Me.ddlLoginType .Items.Add("Sal es Rep") Me.ddlLoginType .Items.Add("Adm in")
End If End Sub Private Sub ddlLoginType_Se lectedIndexChan ged(ByVal sender As Object,
ByVal e As System.EventArg s) Handles ddlLoginType.Se lectedIndexChan ged
...
End sub I have changed the DDL to a Listbox and the same problem. SelectedIndexCh anged event never ever fires! Any idea?
I originally had the <form id="form1" runat="server"> and its associated
<form/> tag around the outside the body tag.
Once I place them inside the body tag, everything seemed to work.
"CW" <a> wrote in message news:#u******** ******@TK2MSFTN GP09.phx.gbl... Yes, Autopostback is true, and it doesn't make an iota of difference at
all. HTML snippet and code (behind) snippet is as below:
<asp:dropdownli st id="ddlLoginTyp e" runat="server" Width="163px" AutoPostBack="T rue"></asp:dropdownlis t> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
If Not Me.Page.IsPostB ack Then Me.ddlLoginType .Items.Add("Cus tomers") Me.ddlLoginType .Items.Add("Sal es Rep") Me.ddlLoginType .Items.Add("Adm in")
End If End Sub Private Sub ddlLoginType_Se lectedIndexChan ged(ByVal sender As Object,
ByVal e As System.EventArg s) Handles ddlLoginType.Se lectedIndexChan ged
...
End sub I have changed the DDL to a Listbox and the same problem. SelectedIndexCh anged event never ever fires! Any idea? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Lacey |
last post by:
When dynamically placing dropdownlists inside a panel, the
dropdownlist's SelectedIndexChanged event doesn't fire. If you take
the dropdownlist out of the panel it works properly. Autopostback is
set to True on the DropDownList. Is there something I'm missing? Any
help would be greatly appreciated.
|
by: Edward |
last post by:
I am having a terrible time getting anything useful out of a listbox
on my web form.
I am populating it with the results from Postcode lookup software, and
it is showing the results fine. What I want to do is to allow the
user to click on the row that corresponds to the correct address, and
have the code behind populate the form's Address1, Address2 etc.
controls with the relevant data items.
I put the code for this into the...
|
by: CW |
last post by:
Yes, Autopostback is true, and it doesn't make an iota of difference at all.
HTML snippet and code (behind) snippet is as below:
<asp:dropdownlist id="ddlLoginType" runat="server" Width="163px"
AutoPostBack="True"></asp:dropdownlist>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
|
by: Daniel |
last post by:
Is there any other way can override this event, like javascript onchange
added to the attribute of this dropdownlist?
Thanks
|
by: Tand35006 |
last post by:
Hi, I hope some one can help with this. I have a basic webform with 2
DropDownLists and a single DataGrid. What I am trying to do is populate the
first DDList from a dataset on Form_Load. I then want to use this 1st DDList
to populate the 2nd DDList via the SelectedIndexChange Event.
So far so good. all works up to this point.
The next thing I'm trying to do is to use the 2nd DDList value in a queery
to populate the Datagrid also...
| |
by: Alec MacLean |
last post by:
Hi,
I have a couple of win forms where I am editing values that are stored in a
SQL database.
I'm using the listbox control to hold the data object each form interacts
with. Each object is defined by my own classes.
On the first form, I use an approach to reduce the number of database calls.
This essentially consists of :
|
by: jnoody |
last post by:
The problem I am having is with the SelectedIndexChanged event not
always firing or the SelectedIndex property not being correct when the
event does fire. The code is below, but here are some details first.
The DropDownList is actually a custom control called
DropDownListWithCommandEvent that inherits from DropDownList. The
reason I have created this is to create a DropDownList that will bubble
a Command event to the containing...
|
by: martin1 |
last post by:
Hi, All,
I want user select first item (called All) in listbox, then all other items
are selected by SetSelected method, but in loop (see code below) whenever
going to SetSelected(), the SelectedIndexChanged event keep fire and loop
doesn't go to next, finally the program stop at infinite loop.
Sub lstCem_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles lstCem.SelectedIndexChanged
If...
|
by: J055 |
last post by:
Hi
I have a dropdown control which is constructed in another dropdown control
SelectedIndexChanged event
protected void ddlParamType_SelectedIndexChanged(object sender, EventArgs e)
{
// some other code
DropDownList ddlGroups = new DropDownList();
ddlGroups.SelectedIndexChanged += new
|
by: Damien |
last post by:
Hi guys,
I'm trying to learn ASP.NET and got a problem with DroDownList...
SelectedIndexChanged doesn't fire.
Maybe you'll be able to suggest something.
I think it may be connected with the fact I fill this list dynamically.
I use the following code:
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |