ajaxcontroltoolkit

Ajax Control Toolkit is loading too many script resources

断了今生、忘了曾经 提交于 2019-12-30 03:12:32
问题 I created a new project. I installed Ajax Control Toolkit from NuGet. Then I created a new page aspx with following code: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ajaxToolkit:ToolkitScriptManager ID="toolkitScriptMaster" runat="server"> </ajaxToolkit:ToolkitScriptManager> hello!!!! </div> </form> </body> </html> I was dumbfounded when I saw that ajaxtookit created 152 scriptresources files. I am

Ajaxcontroltoolkit 15.1.2 Tabcontainer problems

自闭症网瘾萝莉.ら 提交于 2019-12-25 13:16:07
问题 I've just upgraded a legacy web application from .NET 3.5 to .NET 4.5. The application extensively used the AjaxControlToolkit . Since a new version is available from May 2015 , I also upgrade it. I received several errors so I tried to create an empty project from scratch, adding the AjaxControlToolkit through Nuget, and it seems the problem is caused by the TabContainer control. I receive the errors shown in the images below: SCRIPT1028: Expected identifier, string or number 0x800a139e -

Copy Paste file to upload using Ajax Control toolkit AjaxFileUpload

百般思念 提交于 2019-12-25 12:41:49
问题 I have implemented ASP.Net AjaxControlToolkit AjaxFileupload control to upload files in my ASP.Net web application. It works fine,it uploads file by browsing,by drag and drop. How can I let users to upload file by 'Copy and Paste' using this control. Can this be done? Please suggest if there is a workaround. 回答1: You can access the clipboard when someone pastes something on your page but that doesn't give you access to the file in the file system. If you want to be able to upload a file by

Copy Paste file to upload using Ajax Control toolkit AjaxFileUpload

允我心安 提交于 2019-12-25 12:41:27
问题 I have implemented ASP.Net AjaxControlToolkit AjaxFileupload control to upload files in my ASP.Net web application. It works fine,it uploads file by browsing,by drag and drop. How can I let users to upload file by 'Copy and Paste' using this control. Can this be done? Please suggest if there is a workaround. 回答1: You can access the clipboard when someone pastes something on your page but that doesn't give you access to the file in the file system. If you want to be able to upload a file by

The type or namespace name 'HtmlEditorExtender' does not exist in the namespace 'AjaxControlToolkit'

人盡茶涼 提交于 2019-12-25 06:32:53
问题 <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><ajaxToolkit:ToolkitScriptManagerID="ToolkitScriptManager1"runat="server"> </ajaxToolkit:ToolkitScriptManager> <asp:TextBox ID="TxtEditor" runat="server"/> <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TxtEditor"> </ajaxToolkit:HtmlEditorExtender> <br/> <asp:Button runat="server" Text="Submit" OnClick="Submit"/> </form> This is the design

TextBox's text not changing in from upload_complete event handler

吃可爱长大的小学妹 提交于 2019-12-25 05:22:40
问题 I have the following code in AsyncFileUpload's upload complete event handler: Protected Sub AsyncFileUpload1_UploadedComplete(ByVal sender As Object, ByVal e As AjaxControlToolkit.AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedComplete Dim oapp As Excel.Application Dim oWBa As Excel.Workbook Dim oWS As Excel.Worksheet Dim oRng As Excel.Range oapp = New Excel.Application AsyncFileUpload1.PostedFile.SaveAs(Server.MapPath("tempfile2.xlsx")) oWBa = oapp.Workbooks.Open(Server.MapPath(

ModalPopupExtender doesn't work on IE6 frame layout

徘徊边缘 提交于 2019-12-25 04:44:23
问题 I'm using a "frame" layout similar to the one in this excellent answer: a div #top at the top of the page, a div#left on the left, and a div #main with the main content. The #top and #left divs contain navigation menus. Now I want to use a popup div using the AjaxControlToolkit ModalPopupExtender inside the content (#main) div. This works fine on IE8 (where #top, #left, #main all have position:fixed), but when I run it on IE6, the modal background only covers the #main div - I need it to

User control retains focus incorrectly after TextChanged postback when UC is contained within a detailsview control

柔情痞子 提交于 2019-12-25 04:43:26
问题 I reference a previous post: Focus lost on partial postback with UserControls inside UpdatePanel where an excellent solution works perfectly for web-page controls within a form. However, I have placed my UC inside a detailsview template-field (for Edit+Insert). The UC contains an UpdatePanel needed to adjust the text-formatting and control's style(s) following the TextChanged event of the UC-textbox (AutoPostback=True) during the Edit-mode and Insert-modes of the DetailsView. As such, when

Unit testing the MS AJAX Toolkit HTML editor

主宰稳场 提交于 2019-12-25 04:15:35
问题 Is it possible to unit test the MS AJAX Control Toolkit's HTML Editor? I've tried Watin, WebAii and Selenium without any success... Watin I can find the textbox related to the control but I get an exception trying to access it: using (Browser ie = new IE()) { ie.GoTo(testUri); Assert.IsTrue(ie.ContainsText("Expected text")); var textBox = ie.TextField(Find.ById(id => id.Contains("Editor"))); textBox.TypeText("testing 123"); } System.Runtime.InteropServices.COMException: Can't move focus to

ASP.NET Maintaining ActiveTabIndex on Postback within TabContainer

て烟熏妆下的殇ゞ 提交于 2019-12-24 20:17:46
问题 This probably has been asked many times before but I was wondering how to maintain the ActiveTabIndex of an AjaxControlToolKit TabContainer. The only way I can think of achieving such a thing is to store the ActiveTabIndex in the session and checking for this on postback. Are there any other solutions to solve this problem? 回答1: Most likely this answers your question. Such things belong into the ViewState of the Page when their not already saved there. EDIT: On the other hand: i've tested it