ajaxcontroltoolkit

Ajax Tookit TabPanel Invisible Tag Bug

六眼飞鱼酱① 提交于 2019-11-28 13:37:38
I have encountered a slightly bizarre bug while using the ajax control toolkit TabPanel. I have 4 tabs in row like so: [Tab1][Tab2][Tab3][Tab4] Now tab 2 should only appear in certain circumstances, and so has its visibility set to false. However while it is invisible, if I was to click on Tab 3, it would load the tab before switching to Tab 1. Similarly selecting tab4 will load tab4 but then immediately switch to tab3. On the server side the ActiveTabChanged event is being hit twice, once for the tab correctly selected, on once for the tab it is switching too. If I move Tab2 to the end of the

How can I use the ContextKeys property for the AjaxFileUpload control?

ⅰ亾dé卋堺 提交于 2019-11-28 11:36:30
I started looking at the AjaxFileUpload control, specifically the ContextKeys property. However, I do not understand how to use it. The documentation says of AjaxFileUpload that the ContextKeys is used to pass information to the server when a file is uploaded. But no examples are provided. Are there any examples online that I could look at? Yuriy Rozhovetskiy Though such functionality not implemented (I believe it was planned but by some reasons was postponed), nothing protect you from implement it yourself. To do this you need to download AjaxControlToolkit source code and tweak it for your

Drop Down List (in Update Panel) causing FULL PostBack!

徘徊边缘 提交于 2019-11-28 10:08:23
I have a problem with my AJAX and ASP.NET 3.5 :( Problem is really weird, as I'm using the same thing on different page and it works fine in there, but on this specific page, this is not working. Here's what I have: <asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" Visible="true" RenderMode="Inline"> <ContentTemplate> <asp:DropDownList ID="ddlNewService_PortTelco" runat="server" Width="250" CssClass="dropdown" AutoPostBack="true" OnSelectedIndexChanged="Provision_PortedTelcoChanged"></asp:DropDownList> </ContentTemplate> </asp:UpdatePanel> On the way before the DropDown

PopUpExtender on ImageButton inside GridView problem

纵饮孤独 提交于 2019-11-28 01:47:10
问题 I have GridView on my asp.net page, one column in that grid is ImageButton (TemplateField with ID="imbReserve"). On click on that button I want to show PopUp, but when I put TargetControlId="imbReserve" I get error message " A control with ID 'imbReserve' could not be found". How to achieve this, on click on button inside Grid show PopUp ? 回答1: Have a look at these 2 articles, that just helped me out with this problem Article 1: A More Traditional approach The Following is paraphrased from

Image.FromStream(PostedFile.InputStream) Fails. (Parameter is not valid.) (AsyncFileUpload))

蓝咒 提交于 2019-11-27 23:16:24
I'm using an AsyncFileUpload (AJAX Toolkit) to upload images. I have a Button which handle the image resizing. This have worked fine for some time, but not anymore... protected void BtnUploadImage_Click(object sender, EventArgs e) { var imageFileNameRegEx = new Regex(@"(.*?)\.(jpg|jpeg|png|gif)$", RegexOptions.IgnoreCase); if (!AsyncFileUpload1.HasFile || !imageFileNameRegEx.IsMatch(AsyncFileUpload1.FileName)) { AsyncFileUpload1.FailedValidation = true; ErrorLabel.Visible = true; return; } ErrorLabel.Visible = false; var file = AsyncFileUpload1.PostedFile.InputStream; var img = Image

How do I combine WebResource.axd and ScriptResource.axd files so as to result in less requests to my ASP.NET server?

笑着哭i 提交于 2019-11-27 18:25:39
On a site I'm working on, the pages are generating 45 external WebResource.axd and ScriptResource.axd files so the broswers have to request all 45 references. That's a lot of references so I'd like to know if there is a way that all of those requests could be combined into one request? I've seen that the Script Manager is supposed to be able to do something regarding that but I haven't seen any results with the WebResource.axd and ScriptResource.axd files. How would I go about getting these to all combine? As the others have stated, using the ASP.NET AJAX Toolkit's ToolkitScriptManager rather

Could not load type 'AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider'.

人盡茶涼 提交于 2019-11-27 09:19:17
I tried to use htmleditorextender but I am getting error. below are my settings <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <asp:TextBox runat="server" ID="textBoxGalleryUrl" CssClass="cstmtxtclr" /> <asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="textBoxGalleryUrl"></asp:HtmlEditorExtender> My web.conf settings are; <configSections> <sectionGroup name="system.web"> <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit"/> </sectionGroup

Ajax Tookit TabPanel Invisible Tag Bug

时光怂恿深爱的人放手 提交于 2019-11-27 07:47:38
问题 I have encountered a slightly bizarre bug while using the ajax control toolkit TabPanel. I have 4 tabs in row like so: [Tab1][Tab2][Tab3][Tab4] Now tab 2 should only appear in certain circumstances, and so has its visibility set to false. However while it is invisible, if I was to click on Tab 3, it would load the tab before switching to Tab 1. Similarly selecting tab4 will load tab4 but then immediately switch to tab3. On the server side the ActiveTabChanged event is being hit twice, once

How can I use the ContextKeys property for the AjaxFileUpload control?

孤者浪人 提交于 2019-11-27 06:20:17
问题 I started looking at the AjaxFileUpload control, specifically the ContextKeys property. However, I do not understand how to use it. The documentation says of AjaxFileUpload that the ContextKeys is used to pass information to the server when a file is uploaded. But no examples are provided. Are there any examples online that I could look at? 回答1: Though such functionality not implemented (I believe it was planned but by some reasons was postponed), nothing protect you from implement it

ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies

雨燕双飞 提交于 2019-11-26 21:30:49
问题 I'm deploying my website on the server. My website is done using asp.net c# 4 and EF 4. I receive this error: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded Any idea how could I fix it? Thanks for your time on this 回答1: It looks like you're trying to run it on a version of ASP.NET which is running CLR v2. It's hard to know exactly what's going on without more