i have three dropdown list in update panel. when i click the first dropdown it will add two items in otherdropdown.. for me.. it refresh a whole page.. i want to refresh only update panel..
Thank's in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay ChauhanPosted Aug 11, 2009, 3:23 AM
Could you post your aspx code for better understand the problem.
moni moniPosted Aug 11, 2009, 3:44 AM
<%-- UpdatePanel1--%>
<asp:ScriptManager ID="ScriptManager1" runat="server">
asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<br />
<br />
<br />
<br />
<ul id="topTab" style="left: 5px; top: -15px; height: 12px; width: 209px;">
<li id = "choic"><a href="" onclick="return showlocation('choice');") title="Location" shape="circle" >Locationa>li><li><a href="#" onclick="return showmovie('Movie');" title="Movie">Moviesa>li>ul>
<table runat="server" id="choice" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size: 9pt; color: #33ff33; font-family: Verdana;">
Location
<asp:DropDownList ID="cboLocation" runat="server" Height="30px" Width="148px" OnSelectedIndexChanged="cboLocation_SelectedIndexChanged" AutoPostBack="true">
asp:DropDownList>td>
tr>
<tr>
<td style="font-size: 9pt; color: #33ff33; font-family: Verdana;">
Movie Name
<asp:DropDownlist ID="cbomovie" runat="server" Height="30px" Width="148px" OnSelectedIndexChanged="cbomovie_SelectedIndexChanged" AutoPostBack="true">
asp:DropDownlist>
td>
tr>
<tr>
<td style="font-size: 9pt; color: #33ff33;font-family: Verdana;">
Show Date
<asp:DropDownlist ID="cbodate" runat="server" Height="30px" Width="148px" AutoPostBack="true">
asp:DropDownlist>
td>
tr>
table>
<%--Movie table--%>
<table runat="server" id="Movie" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size: 9pt; color: #33ff33;font-family: Verdana; height:22px;">
Movie Name <asp:DropDownList ID="cbomoviename" runat="server" Width="140px">
asp:DropDownList> select>
td>
tr>
<tr>
<td style="font-size: 9pt; color: #33ff33; font-family: Verdana; height: 22px;">
Location
<asp:DropDownList ID="cbomovielocation" runat="server" Width="140px">
asp:DropDownList>
td>
tr>
<tr>
<td style="font-size: 9pt; color: #33ff33; font-family: Verdana; height: 22px;">
Theatre Name<asp:DropDownList ID="cbotheatrename" runat="server" Width="142px">
asp:DropDownList>
td>
tr>
table>
ContentTemplate>
<triggers>
<asp:asyncpostbacktrigger ControlID ="cboLocation" EventName="SelectedIndexChanged" />
triggers>
asp:UpdatePanel>
div>