ajaxcontroltoolkit

Ajax toolkit file upload is not called

我的未来我决定 提交于 2019-12-06 06:31:15
问题 I have two ajaxtoolkit file ulopads on the same page like <ajaxToolkit:AjaxFileUpload id="AjaxFileUpload1" AllowedFileTypes="jpg,jpeg,gif,png" OnUploadComplete="ajaxUpload2_OnUploadComplete" runat="server" /> <ajaxToolkit:AjaxFileUpload id="ajaxUpload1" AllowedFileTypes="jpg,jpeg,gif,png" OnUploadComplete="ajaxUpload1_OnUploadComplete" runat="server" /> and code behind protected void ajaxUpload2_OnUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { string filePath =

ASP.NET - Store Temporary Files

不想你离开。 提交于 2019-12-06 01:35:45
问题 I have a web form that allows users to upload files while opening a ticket in our system. The upload is done using the "ajax control toolkit" asyncFileUpload control. The idea is to have files saved to a temp directory and only save them to the permanent location when the user hits the "commit" button. I would like to be able to get rid of temp files that are no longer relevant (e.g. the user leaves the page open for a month without posting the form). What would be the best way to not keep

AJAX Control Toolkit Loading All Scripts

随声附和 提交于 2019-12-06 00:57:52
I have a bit of a weird problem I can't seem to fix. I am using the AJAX Control Toolkit's calendar extender on some of my pages. Despite the information I've found via the web I can't seem to get it working with a regular ScriptManager control, it only works with a ToolkitScriptManager . However I've noticed that when the page loads it adds some 84 script files for every possible control script provided by the toolkit: Is this the expected behaviour, and can I turn it off? I only need it to load the relevant scripts to handle the calendar extender. In current version of ACT you can group

How do you get/set content via javascript with the AJAX Control Toolkit HTML Editor?

不羁的心 提交于 2019-12-05 22:13:42
I'm using the AJAX Control toolkit HTML editor and have what I hope is a simple question. As the question title says - how do you get/set the content of the HTML editor via javascript? I have no problems accessing the server side content property - but how to do it client side? Any help gratefully received ! The Html Editor is one of the unique Ajax Control Toolkit controls, becuase it does not inherit AjaxControlToolkit.ExtenderControlBase (server side) nor inherit AjaxControlToolkit.BehaviorBase (client side). So you can't use $find javascript method to get access to the behavior instance on

Getting “EndPoint Not Found” error with WCF service deployed to SharePoint 2010 site

不羁岁月 提交于 2019-12-05 22:03:28
I am trying to utilize the autocompleteextender from the ajaxcontroltoolkit in one of my sharepoint solutions (which requires an older version of the library since all of the recent ones require the .NET Framework 4.0) and unfortunately I can't use a page method in a UserControl, only in an actual page . Therefore I am left with only the one option which is to use a method from an actual web service. The problem is that I can't seem to figure out how to correctly deploy the service and configure the web.config. When I try to view the metadata information in the browser I get an error message

AjaxControlToolkit fails to run on Mono [closed]

元气小坏坏 提交于 2019-12-05 14:54:36
Running ASP.NET 3.5 on Mono 2.6.7 (Debian), AjaxControlToolkit throws the following exception on startup: "Cannot cast from source type to destination type." (see stack trace below) This is a simple website referencing AjaxControlToolkit (so long as it's referenced, it will fail throwing this exception). On .NET 3.5, the same simple webpage referencing AjaxControlToolkit.dll would run fine. How would you get this to run on Mono? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register assembly="AjaxControlToolkit" namespace=

Update Progress animated gif stops on postback

吃可爱长大的小学妹 提交于 2019-12-05 14:38:41
I have used ajax update progress control that shows the animated gif when postback happens. Problem: It displays for a while but then it stops refershing (or rather, stops playing/revoloving). What could be the actual cause of the same? Please advice!. Thanks! Jourdan The animation of a .gif will stop on PostBack with Internet Explorer. The problem is inherent to Internet Explorer. Apparently this issue goes all the way back to IE 6 (though I've only confirmed it in IE8). There is a little hack around it, and that's by updating it's source with a setTimeout function UpdateImg(ctrl) { var img =

AjaxControlToolkit MaskedEditExtender - custom mask appearance

烈酒焚心 提交于 2019-12-05 13:42:46
I'm using a MaskedEditExtender to show users what format they should use to enter a date into a textbox. How do I change the mask to be dd/MM/yyyy instead of __/__/____ ? I looked over the source code for the MaskedEditExtender, and it doesn't look it it supports what you want out of the box. You can replace the '_' with some other character with the PromptCharacter property, but to do what you want, you'd need to edit MaskedEditBehavior.js in the control's source code. Search for _PromptChar to find the relevant sections. For a quick workaround, you could create an image of "dd mm yy" and use

AjaxControlToolkit NoBotState is always InvalidBadResponse

六眼飞鱼酱① 提交于 2019-12-05 03:26:39
I am trying to implement AjaxControlToolkit NoBot but I always get false from IsValid() method (the state value is always InvalidBadResponse ). Am I missing something here? ASCX code: // buttons, textboxes etc. <asp:NoBot ID="NoBot1" runat="server" CutoffMaximumInstances="5" CutoffWindowSeconds="60" ResponseMinimumDelaySeconds="2" /> Code behind: protected void Button1_Click(object sender, EventArgs e) { AjaxControlToolkit.NoBotState state; if (!NoBot1.IsValid(out state)) { Page page = HttpContext.Current.Handler as Page; ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg",

Creating a DataTable object with dummy data

我是研究僧i 提交于 2019-12-05 01:43:03
I am trying to databind a DataTable to an accordion and I have found that If I retrieve the DataTable from a database using a table adapter it binds to the accordion perfectly however what I want to do is create a dummy table (for testing purposes if I don't have access to my database) the code to create the dummy table is below: DataTable table2 = new DataTable("articletable"); table2.Columns.Add("articleID"); table2.Columns.Add("title"); table2.Columns.Add("content"); DataRow row = table2.NewRow(); row[0] = "1"; row[1] = "article name"; row[2] = "article contents go here"; table2.Rows.Add