hi, i have a master page with following scriptmanager tag:
<asp:ScriptManager ID="scriptManger" EnablePartialRendering="true" runat="server" >
<Scripts>
<asp:ScriptReference Path="~/common/js/jquery-1.3.2.js" />
<asp:ScriptReference Path="~/common/js/validation.js" />
</Scripts>
</asp:ScriptManager>
My aspx page is :
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/common/MasterPages/Login.master" CodeBehind="SecurityQuestionsEnroll.aspx.cs" Inherits="Login.SecurityQuestionsEnroll" %>
<%@ Register src="~/controls/Views/Login/SecurityQuestions.ascx" tagname="SecurityQuestions" tagprefix="uc1" %>
and this is the user control:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="always" >
<ContentTemplate>
<asp:DataList ID="dlSecurityQuestions" runat="server" AutoPostBack="true" OnSelectedIndexChanged ="dlSecurityQuestions_SelectedIndexChanged">
<ItemTemplate>
<div>
<asp:Label ID="lbl_question" AssociatedControlID="lst_question" runat="server"><%# DataBinder.Eval(Container.DataItem, "QuestionName")%></asp:Label>
<asp:DropDownList ID="lst_question" runat="server" AutoPostBack="true" >
<asp:ListItem Value="0">Select a Question...</asp:ListItem>
<asp:ListItem Value="1">Select a Question1..</asp:ListItem>
</asp:DropDownList>
</div>
<div>
<asp:Label ID="lbl_answer1" AssociatedControlID="txt_answer" runat="server">Answer *</asp:Label>
<asp:TextBox ID="txt_answer" runat="server" />
<div id="validate"></div>
</div>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
</asp:UpdatePanel>
I have tried most of the options which google recommends, but i am not able to do a partial postback. evry time selectedindex is changed it does a full page postback. the drop down as you can see is in a itemtemplate and is repeated. what do you think I am doing wrong that its not firing postback of just the update panel.