<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
<asp:TextBox runat="server" ID="txtMyTextBox">
</asp:TextBox>
<asp:ImageButton runat="Server" ID="ibtnDepartDate" ImageUrl="~/Images/Calendar.png"
OnClick="calImageButton_Click" AlternateText="Click Here" />
<asp:Calendar runat="server" ID="calMyCalendar" Visible="False" OnDayRender="myDayRenderMethod"
OnSelectionChanged="calMyCalendar_SelectionChanged" BackColor="White" BorderColor="#3366CC"
BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana"
Font-Size="8pt" ForeColor="#003399" Height="200px" Width="200px">
</asp:Calendar>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel runat="server" ID="UpdatePanel2">
<ContentTemplate>
<asp:Label ID="lblFirstName" runat="server" Text="First Name"></asp:Label>
<asp:TextBox ID="txtFirstName" runat="server">
</asp:TextBox>
<asp:RequiredFieldValidator ID="RFVFirstName" runat="server" ControlToValidate="txtFirstName"
ErrorMessage="*" SetFocusOnError="True">*
</asp:RequiredFieldValidator> </ContentTemplate></UpdatePanel>
vb.net
Protected Sub calMyCalendar_SelectionChanged(sender As Object, e As EventArgs)
Debug.WriteLine("PARTIAL POST BACK")
If calMyCalendar.Visible = True Then
txtMyTextBox.Text = calMyCalendar.SelectedDate.ToString("MM/dd/yyyy")
calMyCalendar.Visible = False
End If
If txtMyTextBox.Text <> "" Then
dropdownsec.Style.Add("Style", "display:block;")
End If
End Sub
AS First name having required fiels so as i click on calender image its not showing calender,only when i enter value sin textbox it shows..........both r in diffrent update panel still..........not working plz suggest its not doing partial postback