ajaxcontroltoolkit

how to enable backspace,delete into maskededitextender date field

北城余情 提交于 2021-02-07 08:37:52
问题 I have a textbox as a date field . but due masked editor extender I can't edit dates in chrome or firefox backspace and delete is not working in chrome or firefox . codes are below <asp:TextBox ID="txtStartDate" CssClass="txtStartDate" runat="server" MaxLength="10" onkeydown="return allowBackSpace(event);" />  <asp:RequiredFieldValidator ID="startDateRequiredFieldValidator" runat="server" ValidationGroup="Dates" ControlToValidate="txtStartDate" EnableClientScript="True" Display="None" Text="*

AjaxControlToolkit: error raising upload complete event and start new upload

心不动则不痛 提交于 2021-02-07 03:00:54
问题 When using the April 2013 AjaxControlToolkit I receive the error: 0x800a139e - JavaScript runtime error: error raising upload complete event and start new upload When trying to upload a file using the AjaxFileUpload control. 回答1: Make sure the following stuff should be present in web.config. <configuration> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" maxRequestLength="42949672" /> <httpHandlers> <add verb="*" path="AjaxFileUploadHandler

Dropdownlist selectedindexchanged event is not firing

与世无争的帅哥 提交于 2021-01-28 14:19:23
问题 Simply I have a Dropdownlist with RequiredFieldValidatior in UpdatePanel on a page, I have enabled autopostback for the dropdownlist. The problem is that Dropdownlist selectedindex event is not firing. This unexpected behavior happens when I validate the page and ant error occurs. I searched a lot but unable to find the solution my code is as follows: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

AjaxFileUpload Button 'Upload' Failure

↘锁芯ラ 提交于 2020-02-25 08:44:44
问题 I have done quite a bit of searching, and tried many different options. Haven't even seen any other person who has been having a similar problem. I have the the following code placed into my page and the element reacts fine on the page. For the 'ToolKitScriptManager I have tried both the regular as well as the one shown below. Neither work. <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> <asp:AjaxFileUpload ID="inpFileUpload" runat="server"

AjaxFileUpload Button 'Upload' Failure

喜欢而已 提交于 2020-02-25 08:41:39
问题 I have done quite a bit of searching, and tried many different options. Haven't even seen any other person who has been having a similar problem. I have the the following code placed into my page and the element reacts fine on the page. For the 'ToolKitScriptManager I have tried both the regular as well as the one shown below. Neither work. <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> <asp:AjaxFileUpload ID="inpFileUpload" runat="server"

Ajax postback resets tab index -1

拜拜、爱过 提交于 2020-02-06 05:46:04
问题 After postback from Modal Popup Extender all controls tab index set to -1, i am not able to find any solution for this, And there are more than 100 controls in my page. How i can keep the Tab Index of all my controls in ASP.NET page. 回答1: Check your calls to .Show() for the modal popup extender. When you call .Show() it stores all the TabIndexes for your controls to a variable. It does this so it can prevent your controls from being in the tab order while the MPE is shown. If you call .Show()

How to update the session values on partial post back and how to make Javascript use the new values

穿精又带淫゛_ 提交于 2020-02-06 04:14:37
问题 The problem I am facing is the I am passing values to javascript to draw a graph using session values in the code behind. When page loads it take the value from the session and creates the graph, when I do partial post back using a Update Panel and Timer, I call the method to add values to the session and it does it. public void messsagePercentStats(object sender, EventArgs args) { ... if (value >= lowtarg && value < Toptarg) { vProgressColor = "'#eaa600'"; } else if (value >= Toptarg) {

Prevent postback on server-side property change

ε祈祈猫儿з 提交于 2020-01-25 00:28:09
问题 I have a simple CalendarExtender (from AjaxControlToolkit) attached to a textbox. <asp:TextBox ID="StartDateText" runat="server" MaxLength="10" Width="70px" AutoPostBack="True" OnTextChanged="StartDateText_TextChanged" /> <asp:ImageButton ID="ImageCalendarStartDate" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" /> <asp:CalendarExtender ID="StartDateCalendarExtender" runat="server" TargetControlID="StartDateText" PopupButtonID=

Ajax Auto Complete Extender IE9 wrong display positon inside iframe

ぐ巨炮叔叔 提交于 2020-01-24 12:46:05
问题 Inside my project I am using the Ajax Auto Complete Extender v2.0.50727 and it works fine for all textboxes in IE8, Opera, and Chrome, but when it comes to IE9 inside iframes its display position is totally giving me headaches. Instead of appearing just below the textbox, it appears 100px below, like here. The CSS class I am using is: <asp:TextBox ID="txtAddCriteria" runat="server" MaxLength="100" Width="325px" CssClass="TextInput"></asp:TextBox> <ajaxToolkit:AutoCompleteExtender runat=

ScriptManager and UpdatePanel not found in namespace System.Web.UI

蹲街弑〆低调 提交于 2020-01-23 05:34:30
问题 I have a MVC4/Web API project and I created a test page that consumes the Web API using Ajax. Testing was going great, so I began working on the UI. One thing I needed to do was to populate some form controls with data returned from the Web API. I used JQuery for this. Now, when I run the application and submit the form, I get an error indicating that the page had been updated: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in