Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys below is my dropdow
ASP.NET
<asp:DropDownList ID="ddlGetCurr" runat="server" Height="20px" Width="170px" AutoPostBack="true" onselectedindexchanged="ddlGetCurr_SelectedIndexChanged"></asp:DropDownList>

Every Time i select an item my dropdown refreshes its self, it doesnt take the selected value.

I have tried the following but nothing workd.

1.ddlSubject.SelectedValue.ToString()
2.ddlSubject.SelectedItem.Text
3. ddlSubject.SelectedIndex.ToString()
4.ddlSubject.Text

the "AutoPostback='true'" I actualy need it. Please help
Posted
Updated 4-Jan-12 1:38am
v2
Comments
thatraja 4-Jan-12 8:00am    
Show the codebehind for the event ddlGetCurr_SelectedIndexChanged

1 solution

Hi Add update panel in your code..

XML
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
           <ContentTemplate>
               <fieldset>
               <legend>UpdatePanel</legend>
               //Add your dropdown here;
               </fieldset>
           </ContentTemplate>
       </asp:UpdatePanel>
 
Share this answer
 

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