Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">

                   <ContentTemplate>
                   <div style="width:100%;">
                   <table id="tab1">
                   <tr>

                   <td >
                   <panel>
                   <div style=" padding:3px,3px,3px,3px" class="divc"><asp:Label runat="server"
                           ID="divh1" Font-Bold="True" Font-Names="Times New Roman" Font-Size="Medium" ></asp:Label></div>
                   <div style=" padding:3px 3px 3px 3px;" class="divc">
                   <asp:Label runat="server" ID="buy1" class="buylab"  Width="108px" Height="30px"
                           style=" text-align:center" BackColor="#993333" BorderStyle="None"
                           Font-Names="Times New Roman"  Font-Size="Medium" ></asp:Label>
                       <asp:Label runat="server" ID="sell1" class="buylab"  Width="106px" Height="30px"
                           style=" text-align:center;" BackColor="#009999" BorderStyle="None"
                           Font-Names="Times New Roman" Font-Size="Medium" ></asp:Label>
                   </div>
                   <div style=" padding:3px,3px,3px,3px" class="divc" >
                    <asp:Button ID="Button2" runat="server" Text="Buy" class="btnbuy" Width="109px"  UseSubmitBehavior="False"
                           BackColor="#666666" BorderStyle="Solid" BorderColor="#FF6600" onclick="Button2_Click"
                           ></asp:Button>
                    <asp:Button ID="Button3" runat="server" Text="Sell" class="btnbuy"
                           Width="111px"  BackColor="#666666" BorderStyle="Solid"
                           BorderColor="#FF6600" UseSubmitBehavior="False"></asp:Button>
                   </div>
                   <div class="divc"><asp:Label runat="server" ID="low1" Height="25px" style=" padding:1px;" Width="70px"></asp:Label>
                       <asp:Label runat="server" ID="av1" Height="25px" Width="70px" style=" padding:1px;" ></asp:Label>
                       <asp:Label runat="server" ID="high1" Height="25px" Width="70px" style=" padding:1px;"></asp:Label></div>
                   </panel>

XML
</ContentTemplate>
                       <Triggers >
                       <asp:AsyncPostBackTrigger  ControlID="UpdateTimer" EventName="Tick" />
                       <asp:PostBackTrigger  ControlID="Button2" />

                       </Triggers>

                        </asp:UpdatePanel>
Posted

1 solution

1. First check whether your website is Ajax enabled website. If not then add new Ajax enabled website and copy the missing tags from web.config and put it in your project web.config to make sure it is Ajax enabled website.

2.Set EnablePartialRendering="true" in your ScriptManager.
3.Remove the triggers you are using it now in your update panel.
 
Share this answer
 
Comments
Dharmendra Tiwari 5-Sep-13 1:43am    
i have removed removed <asp:PostBackTrigger ControlID="Button2" />
but i also want to call <asp:AsyncPostBackTrigger ControlID="UpdateTimer" EventName="Tick" />
because i want to get content update in 2000 ms.
i have also Set EnablePartialRendering="true"
but still its not working.do u have another solution?

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