hi
I used popup in my page below is my code:
<asp:UpdatePanel ID="Upbdt2" runat="server">
<ContentTemplate>
<asp:ModalPopupExtender DropShadow="true" ID="ModalPopupExtender2" PopupControlID="PnPopup2"
runat="server" TargetControlID="BtnPopup2">
</asp:ModalPopupExtender>
<asp:Button ID="BtnPopup2" OnClick="BtnPopup2_Click" runat="server" Text="انتخاب تصویر"
CssClass="DPC9_Img1" BorderStyle="Solid" BorderWidth="0px" BorderColor="White"
CausesValidation="false" />
<asp:Panel ID="PnPopup2" runat="server" BackColor="White" CssClass="panel">
<div class="CloseImge">
<asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/image/close.png" CausesValidation="false"
CssClass="closeI" />
</div>
<div class="CloseImge">
<asp:FileUpload ID="fup3" runat="server" ToolTip="برای بار گذاری عکس کلیک نمایید."
CssClass="fup" />
</div>
<div class="CloseImge">
<asp:Label runat="server" ID="lbl3" CssClass="lblup"> لطفاً برای بارگذاری عکس روی دکمه بالا کلیک کنید.</asp:Label>
</div>
<div class="CloseImge1">
<asp:ImageButton ID="BtnUpload2" OnClick="BtnUpload2_Click" runat="server" CausesValidation="false"
ImageUrl="~/image/load.png" CssClass="load" />
</div>
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="BtnUpload2" />
</Triggers>
</asp:UpdatePanel>
when I click on BtnPopup2 it show popup menu...
I have other button BTNinsert that when I click on this button it insert data into database now problem is that when I click on BTNinsert it show popup for 1 second and after that insert data into database and if I refresh page it shows popup again for 1 second I want when I click on BTNinsert or refresh page it doesn't show popup just for asecond...
what should I do?
Best regards
Neda