ajaxcontroltoolkit

Modifying AjaxToolkit Source Code

删除回忆录丶 提交于 2019-12-10 12:10:44
问题 I have decided to make some changes in source code of ajaxFileUpload but i don know after making changes how can I use that. How to build that and add the newly modified file to ajax library. I have googled about this but dint get any solution. I need help regarding this. 回答1: You can make the change in the .js file but make sure to recomplie and add the newly compiled .dll to your project. I think if you found a problem with browsers and know the problem, I'd suggest submitting the fix on

Does DotNetNuke 6 support Ajax Control Toolkit?

回眸只為那壹抹淺笑 提交于 2019-12-10 04:17:30
问题 Does anybody have successfully working module in DNN 6 with the Ajax Control Toolkit? My modules stopped working when we migrated from DNN 5.x to to 6.x. Modules compile without errors but I am getting client side script error: 'AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll' Seems like this is conflict with Telerik's controls

AjaxControlToolkit NoBotState is always InvalidBadResponse

老子叫甜甜 提交于 2019-12-10 03:24:17
问题 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 =

How can I make the modal popup scroll its contents with the page?

牧云@^-^@ 提交于 2019-12-08 19:12:34
问题 I've got a modal popup and when it loads contents that are taller than the browser height I am unable to scroll down to view the rest of the information. Instead the background can scroll but the popup won't. Instead I'd like to have the popup stay put and when the user scrolls up or down it leave the popup in place and let them scroll to the bottom of the contents. If you make a super long post on Facebook the popup works correctly and I'd like to know how I can get this same effect with

Postback trigger for button inside a usercontrol in Updatepanel

倾然丶 夕夏残阳落幕 提交于 2019-12-08 17:30:24
问题 I have a user control placed inside an update panel, ie like this. <asp:UpdatePanel ID="testupdatepnl" runat="server" UpdateMode="Conditional"> <ContentTemplate> <uc1:TestControl ID="ctlTest" runat="server" /> </ContentTemplate> </asp:UpdatePanel> Now i got a button placed inside this user control say Click. I want to postback the whole page on the button click. I tried to add a postback trigger like this <Triggers> <asp:PostBackTrigger ControlID="clickButton" /> </Triggers> Since the button

How to check if client script is already registered during a partial postback

狂风中的少年 提交于 2019-12-08 15:00:07
问题 Below is the code I've currently implemented. if (!Page.ClientScript.IsStartupScriptRegistered(Page.GetType(), scriptKey)) { ScriptManager scriptManager = ScriptManager.GetCurrent(page); if (scriptManager != null && scriptManager.IsInAsyncPostBack) { //if a MS AJAX request, use the Scriptmanager class ScriptManager.RegisterStartupScript(Page, Page.GetType(), scriptKey, script, true); } else { //if a standard postback, use the standard ClientScript method Page.ClientScript

Ajax AsyncFileUpload.FileBytes returns null

泪湿孤枕 提交于 2019-12-08 13:33:00
问题 I have a file upload page with an AsyncFileUpload control. When the user browses to the file the upload control pulls the file into memory. I then have an Upload button which fires the following code to save the file to a database. I am finding that if files are over about 500KB then the FileBytes property of the control simply returns null. This happens on my server but when running the app locally it runs through fine. I'm not handling the OnUploadCompleted event as I need to user to

TextBoxWatermarkExtender WatermarkCssClass overwrites TextBox CssClass

Deadly 提交于 2019-12-08 08:08:03
问题 If you set a CSS class on a TextBox control with the CssClass property, targeting that TextBox with the TextBoxWatermarkExtender that has a WatermarkCssClass property will cause it to lose its CSS class, i.e., it is reseting the class attribute to the watermark text, rather than adding it as an additional class: <asp:TextBox ID="TextBox1" runat="server" CssClass="text" /> <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="TextBox1" WatermarkCssClass=

ajax tabcontainer not rendering tabs in IE8

爱⌒轻易说出口 提交于 2019-12-08 06:20:30
问题 I'm using ajax tabcontainer within updatepanel ( and i have placed toolscriptmanager in master pages) to render 2 tab controls. The tabs are rendering in Firefox but throwing error in IE8 ERROR: 0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method It throws above error at below line of code in ScriptResource.axd file self._tabIndex = opt.owner.get_tabs().length; I'm using VS 2013 framework 4.5 and AjaxControlToolkit.dll 4.5.7.1213 Please help in getting

Hide Textbox Targeted by the ColorPickerExtender

ε祈祈猫儿з 提交于 2019-12-08 04:30:03
问题 Is there a way to hide the textbox that is targeted by the colorpickerextender in the newest release of the ajax control toolkit? If you add style="display:none" to the textbox, then the color picker shows up in the top left corner of the browser window. I want it to show up near the button that is referenced in the extenders popupbuttonid. I want to hide the textbox because I don't want the user to see the color code. 回答1: While I didn't hide it, I did find another way to get what I wanted.