ajaxcontroltoolkit

Button inside Update Panel is not triggered, in asp.net

旧时模样 提交于 2019-12-01 21:28:30
<asp:ModalPopupExtender ID="MPE_EditGroup" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup" CancelControlID="btnCancel" /> <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate> <asp:Panel ID="pnlpopup" runat="server"> <asp:ListBox ID="lst_allmembers" DataValueField="FirstName" runat="server" /> <asp:Button ID="btn_Add" runat="server" Text="Add" OnClick="btn_Add_Click" /><asp:ListBox ID="lst_grpmembers" runat="server" /> <asp:Button ID="btn

How do I stop HtmlEditorExtender encoding html in postback?

本小妞迷上赌 提交于 2019-12-01 21:27:08
I have a user control that contains a text box, an HtmlEditorExtender , and a button. The user control is loaded into a parent page using LoadControl() . Whenever I click on the button to post the form, any formatted text in the text box gets encoded, which is not what should happen. For example, if I load the text control with <p>test</p> after I click on the button to post the page, the text returned by the .Text property is &lt;p&gt;test&lt;/p&gt; If I post a second time, it is further encoded as: &amp;lt;p&amp;gt;test&amp;lt;/p&amp;gt; and so on. I confirmed that the control works fine

AutoCompleteExtender position is wrong in Webkit

荒凉一梦 提交于 2019-12-01 20:28:09
问题 I have an ajaxtoolkit AutoCompleteExtender that has position: absolute. I have placed it inside a div with position: relative. This makes the extender dropdown place itself perfectly on all browsers, except on Chrome/Safari, where the position is relative to the top left of the window instead of the div. When I place another ul with the same css class and inline style as the HTML that is generated for the AutoCompleteExtender, the positioning works fine in Chrome. So there is something

AutoCompleteExtender position is wrong in Webkit

谁说我不能喝 提交于 2019-12-01 20:10:15
I have an ajaxtoolkit AutoCompleteExtender that has position: absolute. I have placed it inside a div with position: relative. This makes the extender dropdown place itself perfectly on all browsers, except on Chrome/Safari, where the position is relative to the top left of the window instead of the div. When I place another ul with the same css class and inline style as the HTML that is generated for the AutoCompleteExtender, the positioning works fine in Chrome. So there is something specific to the extender that makes it render at the bottom of the HTML code (just before the end tag, and

Loading AjaxControlToolkit Scripts from Microsoft's CDN using ScriptManager/ToolkitManager

 ̄綄美尐妖づ 提交于 2019-12-01 18:49:12
I know there is another question asking the same thing, but it hasn't gotten any attention for months now: https://stackoverflow.com/questions/3786088/how-to-force-ajax-control-toolkit-scripts-loading-from-cdn I've upgraded my website to .NET4, and I'm now using the scriptManager's EnableCDN="true" tag. My Ajax scripts are being referenced from the Microsoft CDN just how I expected, but I can't seem to get my AjaxControlToolkit scripts to load from the CDN. Instead they all load locally through ScriptResource.axd. I know where the CDN files are located, and I know that I could reference those

AjaxFileUpload automatically upload file once selected

时光怂恿深爱的人放手 提交于 2019-12-01 17:21:38
I have a standard AjaxFileUpload control <asp:AjaxFileUpload ID="upManager" CssClass="fileUpload" runat="server" OnUploadComplete="upManager_UploadComplete" /> And instead of them having to press Upload, I just want the file to upload automatically once they have selected the file. Is there a way to do this? Yuriy Rozhovetskiy Add reference to this script to Scripts collection of ToolkitScriptManager control or just put it at very bottom of page: var legacyAddToQueue = Sys.Extended.UI.AjaxFileUpload.prototype._addToQueue; Sys.Extended.UI.AjaxFileUpload.prototype._addToQueue = function(element)

AjaxToolkit: the last TabContainer on the page is focused on page load

我的未来我决定 提交于 2019-12-01 17:11:24
I'm using more than one TabContainer on a page in an ASP.NET project and I noticed a really strange behavior: when the page is loaded the focus jumps to the last TabContainer on the page, causing it to scroll down. I don't explicitly focus on any control so I don't understand where this is coming from. I also switched places between the controls and it is always the last one that is focused. The TabContainers don't have any fancy settings, this is basically what they look like: <cc1:TabContainer ID="tabContainer" runat="server"> <cc1:TabPanel runat="server" HeaderText="Header1" ID="tabPanel1"

AjaxFileUpload automatically upload file once selected

↘锁芯ラ 提交于 2019-12-01 17:09:00
问题 I have a standard AjaxFileUpload control <asp:AjaxFileUpload ID="upManager" CssClass="fileUpload" runat="server" OnUploadComplete="upManager_UploadComplete" /> And instead of them having to press Upload, I just want the file to upload automatically once they have selected the file. Is there a way to do this? 回答1: Add reference to this script to Scripts collection of ToolkitScriptManager control or just put it at very bottom of page: var legacyAddToQueue = Sys.Extended.UI.AjaxFileUpload

Correct Way to Programatically Trigger Change Event of ASP.net CascadingDropDown using JavaScript

我怕爱的太早我们不能终老 提交于 2019-12-01 09:57:18
问题 Markup <asp:ScriptManager runat="server" /> Country Code <asp:TextBox ID="CoutryCodeTextBox" runat="server" onblur="selectCountry(this.id);"> </asp:TextBox> <asp:DropDownList ID="CountryDropDownList" runat="server"> </asp:DropDownList> <ajaxToolkit:CascadingDropDown ID="CountryDropDownListCascadingDropDown" runat="server" TargetControlID="CountryDropDownList" Category="Country" ServiceMethod="GetCountries" ServicePath="~/CountryData.asmx" LoadingText="Loading ..." PromptText="SELECT"> <

Unknown server tag “ajaxToolkit:HtmlEditorExtender”

蓝咒 提交于 2019-12-01 06:50:44
问题 I am using ajaxcontrols and in that all controls are working well But I had not found any of the control named as HtmlEditorExtender so I had just copied this tag in .html page <%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%> <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" /> <ajaxToolkit:HtmlEditorExtender TargetControlID="txtComments" runat="server" /> <asp:TextBox ID="txtComments" runat="server"></asp:TextBox>