updatepanel

Drop Down List resets

梦想与她 提交于 2019-12-19 09:43:30
问题 My drop down list resets to default when I try to select a item, and it also doesn't trigger's code behind method when I put a line break and try to debug it: Here's markup, <script type="text/javascript"> function bringPOPup() { $.blockUI({message: $('#anotherUP'), css: { width: '600px' } }); } </script> <div id="anotherUP" style="display: none; cursor: default"> <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate> <asp

Updatepanel gives full postback instead of asyncpostback

人走茶凉 提交于 2019-12-19 06:07:51
问题 I have run into what seems to be a very famous problem: My updatepanel fires a full postback instead of a async postback. The normal solution is to give all controls you add dynamically an ID, which I have done, but I still get a full postback instead of my async postback... Here's the code: HTML: <asp:UpdatePanel ID="ItemsUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False"> <Triggers> </Triggers> <ContentTemplate> <asp:ListView ID="PlayerItems" runat="server"

TinyMCE with AJAX (Update Panel) never has a value

岁酱吖の 提交于 2019-12-19 05:34:32
问题 I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: Need ASP.Net/MVC Rich Text Editor Decided to go with TinyMCE as I used it before in non AJAX situations, and it says in that list it is AJAX compatible. Alright I do the good ol' tinyMCE.init({ //settings here }); Test it out and it disappears after doing a update panel update. I figure out from a

TinyMCE with AJAX (Update Panel) never has a value

不问归期 提交于 2019-12-19 05:34:07
问题 I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: Need ASP.Net/MVC Rich Text Editor Decided to go with TinyMCE as I used it before in non AJAX situations, and it says in that list it is AJAX compatible. Alright I do the good ol' tinyMCE.init({ //settings here }); Test it out and it disappears after doing a update panel update. I figure out from a

Dynamically loaded web user control hides on postback

天涯浪子 提交于 2019-12-19 04:21:08
问题 i have a web custom control <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication5.WebUserControl1" %> <asp:DropDownList ID="ddlnew" AutoPostBack="true" runat="server" onselectedindexchanged="ddlnew_SelectedIndexChanged"> <asp:ListItem Text="text1" /> <asp:ListItem Text="text1" /> <asp:ListItem Text="text2" /> <asp:ListItem Text="text1" /> <asp:ListItem Text="text2" /> <asp:ListItem Text="text2" /> </asp:DropDownList> and on the Default

Sys.ParameterCountException: Parameter count mismatch

只愿长相守 提交于 2019-12-18 19:39:42
问题 I face the following problem in firefox and google chrome : Sys.ParameterCountException: Parameter count mismatch. I call the following javascript method onclick : <script type="text/javascript"> var confirmSubmited = false; function SubmitWithLog(par_name, par_address, frm) { jQuery.ajax({ url: "/LogAction.ashx?par_name=" + par_name + "&par_address=" + par_address, type: "GET", timeout: 3000, async: true, // you can try and async:false - maybe is better for you data: action = 4, // here you

ASP.NET with jQuery popup dialog: how to post back on dialog closing

亡梦爱人 提交于 2019-12-18 17:14:48
问题 Folks, I'm working on a rather complicated site. We have an update panel that contains some controls. When one of the controls is clicked, a jQuery dialog box opens. When the dialog box closes, I want to signal the update panel to change its display. To do that I need to post back to the update panel. I know the dialog box has a handy callback event that you can hook up to. But here's the thing. The javascript that manipulates the dialog is all in a separate .js file. I want to continue

A control with ID could not be found for the trigger in UpdatePanel

为君一笑 提交于 2019-12-18 13:18:37
问题 I have an update panel that has UpdateMode of Conditional and ChildrenAsTriggers set to false. I only want a few controls to cause an asynchronous postback: <asp:UpdatePanel ID="updPnlMain" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate> // ... <asp:Repeater ID="rptListData" runat="server"> <ItemTemplate> <asp:Button ID="btnAddSomething" runat="server" OnClick="btnAddSomething_Click" /> </ItemTemplate> </asp:Repeater> // ... </ContentTemplate> <Triggers>

Is there a workaround for IE 6/7 “Unspecified Error” bug when accessing offsetParent

纵然是瞬间 提交于 2019-12-18 11:59:26
问题 I'm using jQuery UI's draggable and droppable libraries in a simple ASP.NET proof of concept application. This page uses the ASP.NET AJAX UpdatePanel to do partial page updates. The page allows a user to drop an item into a trashcan div, which will invoke a postback that deletes a record from the database, then rebinds the list (and other controls) that the item was drug from. All of these elements (the draggable items and the trashcan div) are inside an ASP.NET UpdatePanel. Here is the

How can you tell if a method is being run in UpdatePanel postback?

梦想的初衷 提交于 2019-12-18 11:06:15
问题 How can I tell if a method is running in the context of an AJAX postback (i.e as the result of a UpdatePanel (asynchronous) postback)? According to egoldin Page.IsAsync is a very common confusion that has absolutely nothing to do with AJAX. The correct approach is to use ScriptManager.GetCurrent ( Page ).IsInAsyncPostBack. 回答1: Use ScriptManager.GetCurrent ( Page ).IsInAsyncPostBack 来源: https://stackoverflow.com/questions/265686/how-can-you-tell-if-a-method-is-being-run-in-updatepanel