Add

AutoPostBack="True"

To your DropDownList if you want it to fire right away, otherwise it only
fires when you submit the form.

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Mills, Andy R.
(Regency)
Sent: 16 August 2005 2:52
To: '[email protected]'
Subject: [ASP] .Net - DropDownList Not Firing OnSelectedIndexChanged


Hello Guys:
 
I have the following code:
    <asp:DropDownList
        OnSelectedIndexChanged="ddlSectionID_OnSelectedIndexChanged"
        ID="ddlSectionID" 
        DataTextField="SectionName" 
        DataValueField="SectionID" 
        Runat="server" />
 
When I change / select an item from the dropdown list:  the
OnSelectedIndexChanged Event is not being fired.  Can anyone notice
something I am doing wrong?  My method is declared as followed in my
code-behind:
 
protected void ddlSectionID_OnSelectedIndexChanged(object o, EventArgs e) {
    ........
}  
 
Thanks
 
Andy Mills
Programmer
Regency Thermographers
717-765-3572
 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
http://www.regencythermo.com <http://www.regencythermo.com/> 
 
 
 


[Non-text portions of this message have been removed]




---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 


The contents of this email and any attachments are sent for the personal 
attention
of the addressee(s) only and may be confidential.  If you are not the intended
addressee, any use, disclosure or copying of this email and any attachments is
unauthorised - please notify the sender by return and delete the message.  Any
representations or commitments expressed in this email are subject to contract. 
 
ntl Group Limited



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h53ed53/M=362329.6886308.7839368.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1124208163/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to