Hi, I have a user control with an update panel.This update panel holds country and state dropdown. on selection of country I have to fill state dropdown.
In my aspx page I have placed my Scripmanager but still it does a full postback when country dropdown is selected.
Here is my Master page design code:-
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"
Inherits="NewOneColumnMaster" %>
<asp:ContentPlaceHolder ID="metaHolder" runat="server">
Here is my Aspx design code:-
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="MyApplication.aspx.vb" Inherits="MyApplication" MasterPageFile="~/MasterPages/NewOneColumnMaster.master" Title="My Application" MaintainScrollPositionOnPostback="true" EnableSessionState="True" %>
<%@ Register src="~/UserControls/MyApplication1.ascx" tagname="Application" tagprefix="uc1" %>
<%@ MasterType VirtualPath="~/MasterPages/NewOneColumnMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PrimaryColumn" runat="Server">
<link href="../css/table.css" rel="stylesheet" type="text/css" />
<form runat="server" id="form1">
<asp:scriptmanager id="ScriptManager1" enablepagemethods="true" enablepartialrendering="true"
runat="server" />
<div id="pageDiv">
<uc1:Applicationid = "ucApplication" runat="server" />
</div>
</form>
</asp:Content>
Here is User control desgin code:-
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MyApplication.ascx.vb" Inherits="MyApplication" Debug="true" %>
<div id="MyMainDiv">
<asp:UpdatePanel ID="upEduInfo" runat="server">
<ContentTemplate>
<table>
<tr>
<td style= "height: 22px;">
Country:
</td>
<td colspan="5" style="padding-removed2px;">
<asp:DropDownList ID="drpAltCountry" runat="server" width="300px"
AutoPostBack="True"/>
</td>
</tr>
<tr>
<td style= "height: 22px;">
State/Province:
</td>
<td colspan="5" style="padding-removed2px;">
<asp:DropDownList ID="drpAltState" runat="server" width="300px"/>
</td>
</tr>
</table>
</div>
Can anyone suggest ?? Thanks