i uesd update panel to prevent page from postback
but it does not work and reload the page
please tell me how can i prevent my web page form postback
but it does not work and reload the page
Code:
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate
<table border="-" class="style147">
<tr>
<td class="style148"><asp:Label ID="Label19" runat="server" Text="اسم المحل" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman" Width="70px"></asp:Label>
</td>
<td class="style148"><asp:TextBox ID="StoreNameTxt" runat="server"></asp:TextBox>
</td>
<td class="style148"><asp:Label ID="Label21" runat="server" Text="الاسم التجاري" Font-Bold="True" ForeColor="#000099" Font-Names="Times New Roman" Width="70px"></asp:Label>
</td>
<td class="style148"><asp:TextBox ID="CommersialStoreNameTxt" runat="server"></asp:TextBox>
</td>
<td class="style148"> <asp:Label ID="Label34" runat="server" Text="الموقع" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman"></asp:Label>
</td>
<td colspan="2" class="style148">
<asp:DropDownList ID="LocationIdCmbo" runat="server" Width="170px"></asp:DropDownList>
<asp:TextBox ID="LocationIdTxt" runat="server" Visible="False"></asp:TextBox>
</td>
<td class="style148"><asp:Label ID="Label35" runat="server" Text="مساحة المحل" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman" Width="70px"></asp:Label>
</td>
<td class="style148"><asp:TextBox ID="StoreAreaTxt" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style153">
<asp:Label ID="Label36" runat="server"
Text="عدد اللوحات الدعائية" Font-Bold="True" ForeColor="#000099"
Font-Names="Times New Roman" Width="90px"></asp:Label></td>
<td class="style153"> <asp:TextBox ID="ADBoardNumberTxt" runat="server"></asp:TextBox></td>
<td class="style153">
<asp:Label ID="Label37" runat="server" Text="مساحتها"
ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman"></asp:Label></td>
<td class="style153"> <asp:TextBox ID="AreaADBoardsTxt" runat="server"></asp:TextBox></td>
<td rowspan="3" class="style150">
<asp:Label ID="Label86" runat="server" Font-Bold="True"
Font-Names="Times New Roman" ForeColor="#000099" Text="النشاط"></asp:Label></td>
<td rowspan="3" valign="middle" class="style150" align="right" >
<asp:DropDownList ID="AcivityCombo" runat="server" Height="23px" AutoPostBack="True"
style="margin-right: 0px" Width="128px"></asp:DropDownList>
<asp:TextBox ID="ReqActivityTxt" runat="server" Visible="False" Width="26px"></asp:TextBox>
</td>
<td class="style150" rowspan="3" valign="top">
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:ImageButton ID="AddActivityCnd" runat="server" AutoPostBack="True" ImageUrl="~/Images/icon-news2 (2).png" ToolTip="اضغط هنا لاختيار النشاط المحدد" />
<br />
<asp:ImageButton ID="DelActivityCnd" runat="server" ImageUrl="~/Images/icon-news2.png" />
</td>
<td colspan="2" rowspan="4" class="style151">
<asp:ListView ID="ListView1" runat="server">
</asp:ListView>
<asp:GridView ID="ActivityGV" runat="server" GridLines="Vertical" PageSize="5">
<Columns>
<asp:BoundField DataField="ActivityName" HeaderText="النشاط المحدد" />
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td class="style153"><asp:Label ID="Label39" runat="server" Text="عدد اللوحات الاعلانية" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman"></asp:Label>
</td>
<td class="style153"><asp:TextBox ID="PropBoardNumberTxt" runat="server"></asp:TextBox>
</td>
<td class="style153"><asp:Label ID="Label40" runat="server" Text="مساحتها" Font-Bold="True" ForeColor="#000099" Font-Names="Times New Roman"></asp:Label>
</td>
<td class="style153"><asp:TextBox ID="AreaPropBoardsTxt" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style148"><asp:Label ID="Label41" runat="server" Text="عدد اللوحات الاضافية" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman"></asp:Label>
</td>
<td class="style148"><asp:TextBox ID="ExtraBoardNumberTxt" runat="server"></asp:TextBox>
</td>
<td class="style148"><asp:Label ID="Label42" runat="server" Text="مساحتها" ForeColor="#000099" Font-Bold="True" Font-Names="Times New Roman"></asp:Label>
</td>
<td class="style148"><asp:TextBox ID="AreaExtraBoardsTxt" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="5" class="style152"></td>
<td class="style152"> </td>
<td class="style152">
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>