Click here to Skip to main content
15,997,960 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:TextBox ID="txtDOB" runat="server" AutoPostBack="True" /><asp:CalendarExtender ID="c1" runat="server" TargetControlID="txtDOB" PopupButtonID="imgCal"></asp:CalendarExtender>
<asp:ImageButton ImageUrl="~/Images/Calendar.png" ID="imgCal" runat="server" />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

This code is note working properly. Page is reloading on click of image.
Posted
Updated 3-Sep-10 22:35pm
v2

1 solution

You are using an ImageButton. It's default behaviour is to submit the page and thus the postback. In case you need just an image, on click of which nothing happens, then I think you need an Image control and not ImageButton.
 
Share this answer
 
v2

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