Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all 3806 articles
Browse latest View live

Commented Issue: not compatible with true 64 bit environment under .Net 4 [27268]

$
0
0
Writing a web application for a Windows 2008 R2 64 bit server.

Visual Studio 2010, .Net Framework 4, 64 bit Windows 7 on 64 bit hardware. I create an ASP.NET Web Application, right click on the project, go to properties, under the build tab, set the platform target to x64.

I downloaded the Ajax .net 4 toolkit. In the Toolbox, I add a tab and to it, the AjaxControlToolkit.

I drop in an Ajax control from the Toolbox into my default page. eg: ToolkitScriptManager. The intellisense underlines it. The warning message is:

Element 'ToolkitScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

I have a web.config file, it's there by default and I don't normally mess with it.

i run the app and get the following error message:

Could not load file or assembly 'WebApplication1' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Switching the Target Platform back to Any CPU fixes this problem, but doesn't address it.
Comments: I couldn't find the 64-bit Ajax Toolkit dll. Could you please post the link? Theoretically, that should solve the problem. Thanks

Commented Issue: HtmlEditorExtender does not dynamically load well in an update panel and placeholder [27181]

$
0
0
When loaded dynamically in a placeholder, the control is not rendered properly.
It works well without the updatePanel


<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Always">
<ContentTemplate>
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>


Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim txtRichText As New TextBox
txtRichText.TextMode = TextBoxMode.MultiLine
txtRichText.Columns = 23
txtRichText.Rows = 20
txtRichText.Width = New WebControls.Unit(100, UnitType.Percentage)
txtRichText.ID = "txtRichText"
txtRichText.Width = 700
txtRichText.Height = 150


Dim txtRichTextEditor As New AjaxControlToolkit.HtmlEditorExtender
txtRichTextEditor.ID = "HtmlEditorExtender"
txtRichTextEditor.TargetControlID = "txtRichText"
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Copy())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Cut())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Paste())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Undo())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Redo())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.HorizontalSeparator())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Bold())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Italic())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Underline())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.StrikeThrough())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.HorizontalSeparator())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.JustifyCenter())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.JustifyFull())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.JustifyLeft())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.JustifyRight())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.HorizontalSeparator())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Indent())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.Outdent())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.InsertOrderedList())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.InsertUnorderedList())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.HorizontalSeparator())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.SelectAll())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.UnSelect())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.HorizontalSeparator())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.ForeColorSelector())
txtRichTextEditor.Toolbar.Add(New AjaxControlToolkit.BackgroundColorSelector())

PlaceHolder1.Controls.Add(txtRichText)
PlaceHolder1.Controls.Add(txtRichTextEditor)
End Sub
Comments: I have a WORKAROUND: The problem: It seems that the control doesn't load some of it's resources when it is not set to render on the first Load. In other words, if the control is in a second view of a MultiView control, or if it should Load somehow after a post back. The solution: 1. Add a Panel control somewhere at the beginning of your page, out of the UpdatePanel. 2. Add a TextBox with an HtmlEditorExtender in the Panel 3. Set the Visible property of the Panel control to False. Why this works: This solution works because the missing resources needed by the HtmlEditorExtender will load on the first Load. So they become available for you actual control. Cheers, Jack

Created Issue: NumericUpDownExtender does not work with labels [27282]

$
0
0
NumericUpDownExtender only handles textbox. It should be extended to handle label.

Edited Issue: NumericUpDownExtender accepts value outside of range [27282]

$
0
0
The problems is that the textbox value can be edited and NumericUpDownExtender accepts value out of range when it is specified with minimum and maximum range.

Commented Issue: MaskedEdit "backspace" problem with safari and chrome -- here's the fix! [26978]

$
0
0
"backspace" does not work with the MaskedEditExtender in safari and chrome

it even fails on http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx

the fix is easy. in the current source code of MaskedEditBehavior.js about line 890 you have this:

if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keypress")
{
if (scanCode == 8) // BackSpace
...

the code should be:

if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keydown")
{
if (scanCode == 8) // BackSpace
...


I would like to take credit, but i found it here:
http://www.timgittos.com/archives/safari-and-firing-keypress-events-with-backspace/

I have compiled and tested it.. works fine

somebody please make the change to the golden source so I dont have to download/fix/ and copile the whole thing every time you come out with a new release...

thanks
jd
Comments: Another method to fix this. This will wrap the original _ExecuteNav function and simply replace the event.type == 'keydown' with 'keypress', call the original function, then restore the event.type. This will also work on both debug and release builds without any changes. Add the MaskedEditFix.js to your project. I included the MaskedEditFix.debug.js version for reference but it is not needed. Add code to your page init event to load the script file. (VB.Net) Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init If Page.ClientScript.IsStartupScriptRegistered(Me.GetType, "MaskedEditFix") = False Then Page.ClientScript.RegisterStartupScript(Me.GetType, "MaskedEditFix", String.Format("<script type='text/javascript' src='{0}'></script>", Page.ResolveUrl("~/Js/MaskedEditFix.js"))) End If End Sub I used the RegisterStartupScript method to load the script at the end of the document so the masked edit control will load first which is necessary. Hope this helps someone.

Commented Issue: AjaxControlToolkit does not contain a script with hash code "de1feab2" [27199]

$
0
0
Hello Support

We are facing below issue-

Assembly "AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" does not contain a script with hash code "de1feab2"

thanks.
Comments: Hi, Do you have solution for this issue? Thanks

Commented Issue: Problem with tabcontainer in IE8 [27201]

$
0
0

Hello,
My team and me have developped a control using some ajax controls... The main control used is the tabcontainer containing 2-3 tabPanels.
Our control is working perfectly in ie9, firefox, chrome, opera but is not working with ie8. I've tried multiple version of AjaxControlToolkit .NET 3.5 library (Nov. 2011, May 2012, June 2012) expecting each time that this bug has been fixed but the error is still there.

The error is the following one:

Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus
Comments: The DLL which can be downloaded here seems t be compiled against .NET 2.0? Is that correct? I need a 4.0 DLL with this IE8 fix. Can anyone provide that? Thanks in advance!

Commented Issue: Problem with tabcontainer in IE8 [27201]

$
0
0

Hello,
My team and me have developped a control using some ajax controls... The main control used is the tabcontainer containing 2-3 tabPanels.
Our control is working perfectly in ie9, firefox, chrome, opera but is not working with ie8. I've tried multiple version of AjaxControlToolkit .NET 3.5 library (Nov. 2011, May 2012, June 2012) expecting each time that this bug has been fixed but the error is still there.

The error is the following one:

Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus
Comments: Hi, I found the error too, and i resolved downloading the code and add try/catch block in script. See the post. http://ajaxcontroltoolkit.codeplex.com/workitem/27237 Dear, Ivan Patrick

Created Issue: System.Web.Ajax [27283]

$
0
0
Good day,

I've downloaded latest version of ajaxtoolkit for .net 3.5. After i installed it and added to my page i am getting file not found exception when trying to load page. It cannot find System.Web.Ajax.dll. But i cannot find this assembly in binaries or source code.

Help please.

Commented Issue: ModalPopupExtender and ValidationSummary not working on Page_Load [27024]

$
0
0
I have a ModalPopupExtender (mpeAddEdit) that shows on page load. In the ModalPopupExtender there is a ValidationSummary Control (vsDutyLog). If the validationsummary control is present or enabled, then when the call to how the ModalPopupExtender in Page_Load (mpeAddEdit.show() ) , generates an error in the javascript: 'Microsoft JScript runtime error: Object expected' at the line(s) in the javascript reading:

document.getElementById('cphBody_vsDutyLog').dispose = function() {
Array.remove(Page_ValidationSummaries, document.getElementById('cphBody_vsDutyLog'));
}
(function() {var fn = function() {Sys.Extended.UI.ModalPopupBehavior.invokeViaServer('cphBody_mpeAddEdit', true); Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();

If the ValidationSummary control is not enabled, or is commented out, then there are no errors generated. Also, if the ModalPopupExtender is shown at any other time than page load, there are no errors (i.e. shown via clicking a link).

It seems like this was somewhat of an issue once before and that the issue related to incorrectly generated javascript (see http://forums.asp.net/t/1175339.aspx/1). The work around here defined seems to alleviate the issue, but then the ValidationSummary is not usable as it is diabled. (See also http://ajaxcontroltoolkit.codeplex.com/workitem/12835?ProjectName=ajaxcontroltoolkit for more information about a suitable interim workaround).

For me this is a high priority issue as it directly affects work I'm currently doing.
Comments: This was closed back in 2009 as resolved how is this coming back in 2012???

Created Issue: Compile Source .NET 3.5 - Error: namespace name 'Resources' does not exist [27284]

$
0
0
How do you compile latest release source for .NET 3.5? (In VS2010) The moment I changed the framework to 3.5 I get an error:

The type or namespace name 'Resources' does not exist in the namespace 'AjaxControlToolkit.Properties' (are you missing an assembly reference?) Server\AjaxControlToolkit\ExtenderBase\ScriptUserControl.cs

A little bit of documentation on these HOWTO topics would help too.

Created Issue: AjaxFileUpload "Select File" button not clickable if container CSS display set with Javascript [27285]

$
0
0
When placing the AJAXFileUpload control in a container that originally has its CSS property "display" set to "none" and then changed via Javascript nothing happens when the "Select File" button is clicked.

I have also tried placing the container off the visible area of the page and using the javascript to move it back into view with the same results.

Commented Issue: htmleditorextender set value in the editor using javascript [27260]

$
0
0

Hi,

I am trying to work with the new htmleditorextender but am having trouble clearing the value/ or changing in the textbox. (in the old editor I was able to use "set_content("")").

When using input type=reset all values on the page are reseted but NOT the textbox using the htmleditorextender.

I also tried clearing/changing them by code but nothing worked. The value is not resetted on the screen. When checking the value using alert the value seems to be cleared. but on the screen the value still shows.

some code I tried:

<asp:TextBox ID="TextBox1" runat="server" ClientIDMode="Static" TextMode="MultiLine" Rows="10" Width="80%" > </asp:TextBox>
<asp:HtmlEditorExtender ID="HtmlEditorExtender1" EnableViewState="false" runat="server" TargetControlID="TextBox1">
<Toolbar>
<asp:Bold />
<asp:Copy />
</Toolbar>
</asp:HtmlEditorExtender>
<input class="reset" type="button" value="Reset" onclick="clearpage();" />

the "clearpage()" function

$("#TextBox1").val("")
alert($("#TextBox1").val());

Can anyone please give me an idea how to reset the value/ or change the value in the editor without postbacking.

Thankyou

Karen


Comments: it's tricky with the new version. I had to use old fashioned javascript: <script type = "text/javascript> function changeContent(newContent) document.getElementById('ctl00_ContentPlaceHolder1_replyBody_HtmlEditorExtender_ExtenderContentEditable').innerHTML = newContent } <script> <input type="button" onclick = "changeContent('Happy Monkeys')"> <asp:Textbox ID="replyBody" Height="450px" Width="892px" runat="server" TextMode ="MultiLine" /> <ajaxToolkit:HtmlEditorExtender ID="replyBody_HtmlEditorExtender" runat="server" Enabled="True" OnImageUploadComplete="saveFile" ClientIDMode="AutoID" EnableSanitization="false" TargetControlID="replyBody"> </ajaxToolkit:HtmlEditorExtender> When you run it and click the button it will change the content to "Happy Monkeys"

Commented Issue: ComboBox don't work with firefox [27215]

$
0
0
ajax toolkit 4.1.60623
net 4
firefox 13.0.1

Autosuggestion Problem.

With IE work fine but with firefox when I try to write something (anything) the control remain blank. If the control has something (some words) and try to hit a key from my keyboard the control return to blank.

I talk about the textbox of control and not for the list.

The list items displayed fine.
Comments: Same problem - fixing this problem would be greatly appreciated!

Commented Issue: ComboBox throws NullReferenceException on PostBack when created but not rendered [26981]

$
0
0
Ajax Control Toolkit version: 3.5.50508

The ComboBox throws a NullReferenceException when it is created and added to the Controls collection but not rendered (ComboBox,Enabled = true, ComboBox.Visible = true). This is being caused by the following code fragment within ComboBox.LoadPostData:

if (this.Enabled)
{
int newSelectedIndex = Convert.ToInt32(postCollection.GetValues(this.HiddenFieldControl.UniqueID)[0], CultureInfo.InvariantCulture);
....
}

It should check if postCollection.GetValues(this.HiddenFieldControl.UniqueID) has a value before performing the conversion.

Comments: This same error happens (for the same reason) during PostBack when the ComboBox is in a disabled TabPanel.

Created Issue: ComboBox throws NullReferenceException on PostBack when in a disabled TabPanel [27286]

$
0
0
The following code reproduces the problem:

--- begin code ---

<ajax:TabContainer runat="server">
<ajax:TabPanel runat="server" HeaderText="Disabled" Enabled="false">
<ContentTemplate>
<ajax:ComboBox runat="server" ID="ComboBox1" />
</ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
<p>
<asp:Button runat="server" Text="Click me for error" /></p>

--- end code ---

September 2012 Release
Version 60919
ASP.NET Framework 4.0
Visual Studio 2010
IE9

I believe this is the same root cause as issue 26981.

Created Issue: Tab Container [27287]

$
0
0
I am using VS2008 and creating application having ajax tabcontainer, but now it is not showing. When i run project on computer it is not displaying any how i used toolscriptmanager instead of scriptmanager but it is still not showing after debug.

Commented Issue: Error in Tabs Ajax Control Toolkit. [27237]

$
0
0
Hi,

I found an error in Tabs of ajax control toolkit, I have downloaded the last version of June 2012 Release, the erros occors in the other versions too.

The error consist in have a TabContainer inside a Tab of other TabContainer, inside an update panel.
When run the application an error of "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

The error occors only in the IE 8, I dont have IE 7 for test. The error dont occors in IE 9 compatibility mode.

I have resolved this error, add a try/catch block in js script "Tabs.pre.js" where the focus of tab is set.

Attachment the application that occors the bug.

Ivan Patrick.
Comments: I have the same issue but the thing i cant view tabcontainer while debuging but on my another computer it work fine.

Commented Issue: TabContainer throws exception in user control with Nov release [27053]

$
0
0
A user control contains a tabcontainer. When aspx page loads, the user control is not visible. Ajax toolkit script function tries to set focus on tabcontainer and it throws exception : "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

The problem occurs in IE 8 with 11/16/2011 release. It worked OK with sept. release.
Comments: This is still an issue, and should not be closed. PLEASE ADD THE ABOVE CODE.

Commented Issue: The ToolkitScriptManager makes the new ASP.Net 4.5 request validation mode to “break” [27249]

$
0
0
The description of this new ASP.Net 4.5 feature can be find here : http://www.asp.net/vnext/overview/whitepapers/whats-new#_Toc318097379
It allows people to keep the ValidateRequest="true", even when working with "touchy" inputs.
Indeed, validation is deferred until you actually access request data, and you have the option to work with unvalidated field thanks to Request.Unvalidated (and then make your own validation for example)

But the ToolkitScriptManager controls is using the request.Params collection (http://msdn.microsoft.com/en-us/library/system.web.httprequest.params.aspx) in ToolkitScriptManager.cs line 302 and 303, which is causing every fields to be validated, and such killing the benefits of the new ASP.Net 4.5 request validation mode.
Indeed, when using request.Params, the following steps occur (based on Decompilation of System.Web.HttpContext) :
- the getter calls the method System.Web.HttpRequest.GetParams()
- If _params is null, GetParams() creates a new HttpValueCollection and then call System.Web.HttpRequest.FillInParamsCollection()
- This method calls the Add(NameValueCollection c) method of _params with one by one the following NameValueCollections: QueryString, Form, Cookies and ServerVariables
- When reading the source code of Add(NameValueCollection c), we can see that it basically consists of a loop iterating on the collection in order to copy every Name/Value to the new collection, which is causing the deferred request validation for every fields

My suggestion: make sure that request.Params is not used and use the correct collection instead (request.Form in this case)

Version of ACT used: AjaxControlToolkit 4.1.60623 (downloaded from the official nuget source)
Version of .NET used: .NET 4.5 RTM

Reproduction steps:
• Create a new ASP.Net Empty Web Application (.NET Framework 4.5)
• Install-Package AjaxControlToolkit
• Add the attribute requestValidationMode="4.5" to the httpRuntime element in web.config (not sure if this is required because the default setting seems to be 4.5. The documentation is not yet complete regarding that and I didn't took the time to check).
• Add new Default.aspx page
• Add one textbox with ValidateRequestMode="Disabled" on the page
• Add one button on the page (or anything that can fire a postback)
• Test the page with valid and invalid text => it works
• Add a ToolkitScriptManager on the page
• Test the page with valid and invalid text => HttpRequestValidationException raised in ToolkitScriptManager.cs OutputCombinedScriptFile(HttpContext context) method because of request.Params["…anykey…"] usage

Comments: Unfortunately, the September 2012 Release of the Ajax Control Toolkit doesn't fix the problem.
Viewing all 3806 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>