Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I am new to asp.net , step-by-step i will explain whatever i have done

1. I have called one one we user control in my aspx page.

2. in that usercontrol i have some dropdownlist box controls are there. the problem is when i am changing the dropdown list the selectindex chandged event is not firing but the page load is firing

note: in that usercontrol i have used asyncronous postback trigger for that dropdown controls

in my aspx page
i have set clientidmode="static"

<usercontrol>for this user control also i given clientidmode="static" its having autopostback =true for controls -> these controls are in update panel


but when i loading first time the usercontrols page load is firing after that the selected index changed is not firng

help me as soon as possible

thanks in advance

vels ananth
Posted
Updated 10-Nov-14 2:38am
v3
Comments
[no name] 7-Nov-14 6:02am    
You want it in code behind or in javascript ?
avelsamy 7-Nov-14 7:00am    
i want it in code behind, i have called the usercontrol in aspx page and showed it in jquery dialog.the values are loaded in the dropdown list. when the change the drop down, the page load event is fired in the usercontrol, and the selected index changed event is not firing.
[no name] 7-Nov-14 7:04am    
Did you add AutoPostBack="true" on aspx ?
avelsamy 9-Nov-14 23:29pm    
yes adding auto-postback= true in aspx controls.but still it is not firing the selected index changed event, but it is firing the page load event in the user control(first time load when the parent aspx is loading)

1 solution

Hi
Review this link
www.asp.net/web-forms/overview/older-versions-getting-started/aspnet-ajax/understanding-asp-net-ajax-updatepanel-triggers
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900