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

DropDownList SelectedIndexChange Not Firing

I need help. I am attaching both the html stuff as well as the code snippet that is not firing. Can someone please help me
Thank

Sub InputPub_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) _ HandlesInputPub.SelectedIndexChange
Dim PubNew, AdTypeNew As Strin

ComboBoxLostFocus(InputPub
PubNew = ComboBoxCurrentCode(InputPub
AdTypeNew = ComboBoxCurrentCode(AdType
SetComboBoxText(AdType, "ADTP", msPubSave.Value, "", "", "", 2, False

End Su

<TD><asp:dropdownlist id="InputPub" tabIndex="3" runat="server" EnableViewState="False" CssClass="DropDownList
BackColor="#f5f5f5" onload="InputPub_Load" SelectedIndexChanged="InputPub_SelectedIndexChange d"></asp:dropdownlist></TD>
Nov 18 '05 #1
1 1703
In article <A4**********************************@microsoft.co m>,
an*******@discussions.microsoft.com says...
I need help. I am attaching both the html stuff as well as the code snippet that is not firing. Can someone please help me.
Thanks

Sub InputPub_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) _ HandlesInputPub.SelectedIndexChanged
Dim PubNew, AdTypeNew As String

ComboBoxLostFocus(InputPub)
PubNew = ComboBoxCurrentCode(InputPub)
AdTypeNew = ComboBoxCurrentCode(AdType)
SetComboBoxText(AdType, "ADTP", msPubSave.Value, "", "", "", 2, False)

End Sub

<TD><asp:dropdownlist id="InputPub" tabIndex="3" runat="server" EnableViewState="False" CssClass="DropDownList"
BackColor="#f5f5f5" onload="InputPub_Load" SelectedIndexChanged="InputPub_SelectedIndexChange d"></asp:dropdownlist></TD>


Check the InputPub.AutoPostBack. Set it to true.
--
Aaron Bellante
Nov 18 '05 #2

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

Similar topics

1
by: Paul C | last post by:
Can anyone tell me why I am getting 2 calls to my SelectedIndexChange event. public class Browse : System.Web.UI.Page { protected System.Web.UI.WebControls.DataGrid DataGrid1; protected...
1
by: Jay | last post by:
I have dropdownlist in a usercontrol and selectedindexchange event captured. But Iam seeing fire twice. Thanks.
2
by: MBhat | last post by:
Hello, I have a dropdownlist server control.On selectedIndexChange I do some functionality. In addtion to this I need to check for something else. To do this I have to use javascript function to...
4
by: Yahya Saad | last post by:
Dear All, I have an ASP.Net webform that includes a DropDownList (bound to a dataview including 6000 records) and a textbox that is updated according to the selection of an event at the...
0
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...
0
by: Leonardo Santos-Macias | last post by:
I have a dropdown list that I bind at runtime. It does postback to the server. If I select any item, it will trigger the SelectedIndexChange event. My problem is that it doesn't trigger the...
2
by: Kevin | last post by:
Hi I need to get the "ItemId" from the selected value of the DropDownList in a DataList, but i don't known where tu put the <%# DataBinder.Eval(Container.DataItem, "ItemId"), because if I try to...
0
by: kimberly.walker | last post by:
I have a user control with 3 dropdownlist when a user selects the first listbox based on his/her selection the 2 listbox will load based off the users selection from the 2nd listbox the 3rd listbox...
5
by: =?iso-8859-1?B?R2VhcvNpZA==?= | last post by:
Sorry to repost, but please see below... this is driving me mad at this point. ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
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...

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.