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

1. I am using a 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(autopostback=true is given)

note: in that usercontrol i have used asyncronous postback trigger for that dropdown controls bcoz its all controls are in update panel

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

but when i loading and selected index changing only the usercontrol's page load is firing after that the selected index changed is not firng

help me as soon as possible

thanks in advance
velsamy
Posted
Comments
Laiju k 11-Nov-14 0:05am
   
how did you give the asyncronous postback trigger
in that usercontrol i have used asyncronous postback trigger for that dropdown controls bcoz its all controls are in update panel.
give the source code
avelsamy 11-Nov-14 0:29am
   
<sss.ascx clientidmode="static">

<asp:UpdatePanel ID="updswitch" runat="server">
<contenttemplate>
<div>
<div>
<div>
<div class="formfield_label">
Client</div>
</div>
<div>
<div><span id="Div3" class="tooltipcontainer hide-on-mobile hide-on-tablet" runat="server" title="<%$ Resources:hint_tooltip,clientname%>">
</span><span class="hide-on-mobile hide-on-tablet">:</span><asp:DropDownList ID="ddl_clientname" CssClass="form_input" runat="server" AutoPostBack="True" TabIndex="1">
</div>
</div>
</div>
<div>
<div>
<div class="formfield_label">
Fund</div>
</div>
<div>
<div><span id="span1" class="tooltipcontainer hide-on-mobile hide-on-tablet" runat="server" title="<%$ Resources:hint_tooltip,fundname%>">
</span><span class="hide-on-mobile hide-on-tablet">:</span><asp:DropDownList ID="ddl_fundname" runat="server" CssClass="form_input" AutoPostBack="True" TabIndex="2">
</div>
</div>
</div>

<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddl_clientname" />
<asp:AsyncPostBackTrigger ControlID="ddl_fundname" />
</Triggers>

</div>



aspx
-----
clientIdmode=static

<div id="dialog1" runat="server" style="display: none">
<asp:UpdatePanel ID="updt_valuation" runat="server" ClientIDMode="Static">
<contenttemplate>

<valred:valredeem ID="valredeem" runat="server" ClientIDMode="Static"/>
</div>
<valswitch:valswitch ID="valswitch" runat="server" AutoPostBack="True" />
</div>


</div>

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