[ Dragan BL @ 29.07.2010. 11:58 ] @
Imam vise UpdatePanel-a na stranici. Svaki UpdatePanel ima Button. Problem nastaje kada kliknem na prvi button i on se ne zavrsi do kraja, a ja kliknem na drugi button - prvi bude ABORTED. Zelim da klikcem koliko zelim na dugmice, a da ni jedan prethodni zahtjev ne bude ABORTED, nego da se svi izvrsavaju. Primjer: Code: <%@ Page Language="C#"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblDate1.Text = lblDate2.Text = DateTime.Now.ToString(); } } protected void btnDate1_Click(object sender, EventArgs e) { System.Threading.Thread.Sleep(1000 * 5); // Sleeps 5 second lblDate1.Text = DateTime.Now.ToString(); } protected void btnDate2_Click(object sender, EventArgs e) { System.Threading.Thread.Sleep(1000 * 5); // Sleeps 5 second lblDate2.Text = DateTime.Now.ToString(); } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Update Panel</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="updDate1" runat="server" UpdateMode="Conditional"> <ContentTemplate> Update Panel 1: <asp:Label ID="lblDate1" runat="server"></asp:Label> <asp:Button ID="btnDate1" runat="server" Text="Update Time" OnClick="btnDate1_Click" /> </ContentTemplate> </asp:UpdatePanel> <div> <asp:UpdatePanel ID="updDate2" runat="server" UpdateMode="Conditional" RenderMode="Inline"> <ContentTemplate> Update Panel 2: <asp:Label ID="lblDate2" runat="server"></asp:Label> <asp:Button ID="btnDate2" runat="server" Text="Update Time" OnClick="btnDate2_Click" /> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> Ni kada stavim trigere nece da radi (mislim da triger nema veze sa ovim) :), pa ga zato nisam ni naveo u primjeru. Je li se neko susreo sa ovim problemom? |