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

Closed Issue: AjaxFileUpload control not working on IE9, Win 7 [27177]

$
0
0
I'm developing a site on .Net 4 on Windows 7 32-bit in VS2010. I've updated to the May 2012 version of the toolkit and tried using the ImageUpload of the HtmlEditorExtender, but whenever I try upload an image, it just puts a red (error) next to the image name. I've tried giving Everyone full access to the folder where the image should be saved, but I cannot even see that it is getting to that point. I've also tried using just the AjaxFileUpload control to test it, but it does exactly the same. Any ideas?
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Closed Issue: AsyncFileUpload don't work in repeater [27352]

$
0
0
Hi,

I detect an issue inside the AsyncFileUpload component when I use it inside a repater.

The issue is in the ReceivedFile function.
```
foreach (string uploadedFile in this.Page.Request.Files)
{
string fileToUse = uploadedFile;
if (fileToUse.EndsWith(straggler))
{
fileToUse = fileToUse.Remove(fileToUse.Length - straggler.Length);
}
if (fileToUse.Replace("$", "_").EndsWith(sendingControlID))
{
file = this.Page.Request.Files[uploadedFile];
break;
}
}
```
This part of code don't work because it don't take the id generated by the repeater

I propose this solution :
```
if (this.Page.Request.Files.AllKeys.Contains(UniqueID + straggler))
file = this.Page.Request.Files[UniqueID + straggler];
```
I had this before the foreach and it's works.

I think the foreach can be replace by this short code but I am not sure.

What do you think ?
Comments: This is a good suggestion. We will take it into account while working on the toolkit. Thank you!

Closed Issue: Important Fix for Calendar Extender [27356]

$
0
0
I'm not going to reveal how many days I've been fighting this. I think this should be a high priority issue. I have two applications using virtually identical code, with the same version of the AjaxControlToolkit. Both had multiple CalendarExtenders on a single page. With the associated TextBoxes set for AutoPostback, setting the extender's SelectedDate property caused multiple post backs (lots of them). This caused a big problem with another library that I use. One application automatically showed the correct date in the calendar when clicking on the TextBox. The other showed the current date. I went around and around trying to do work-arounds because there was no logical reason that it would behave differently in the two applications. I was ready to write off this toolkit as unstable.

What was different? In the application that "worked", when I assigned the DateTime string to the TextBox, I used .ToString("d"), and in the one that "didn't work", I just assigned .ToString().

Since this is a "CalendarExtender", could you just automatically strip the time portion from the DateTime string when reacting to the TextBox assignment? Just to see if this was actually necessary or if I was just doing something wrong, I tried using the ClearTime="true" attribute, but that only set the time to midnight. It still didn't select the correct date. I couldn't see any other setting that would affect this.

I think that's an appropriate modification since the time will never be displayed on a calendar control (as far as I know). Also, I'm not quite sure why setting the SelectedDate should cause multiple postbacks. I don't know if that is something you want to look at.

Thanks. Except for instances like this, your toolkit saves me time.

Closed Issue: Not Compatible with IIS 8 [27358]

$
0
0
Just let me know what else to try to prove this false.

Steps:
Built fresh ASP form apps using VS 2012 Express for Web.
Added the toolkit using NuGet.
Created an AJAX toolbox tab and browsed to the toolkit dll to add the controls.
Added the following to the asp:Content section:
```
<ajaxToolkit:TabContainer ID="tc1" runat="server" ActiveTabIndex="0">
<ajaxToolkit:TabPanel ID="TP1" runat="server">
<HeaderTemplate>
Test 1
</HeaderTemplate>
<ContentTemplate>
content 1
</ContentTemplate>

</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TP2" runat="server">
<HeaderTemplate>
Test 2
</HeaderTemplate>
<ContentTemplate>
content 2
</ContentTemplate>

</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
```
Ran locally and the tab control was present and working.
Uploaded to site.
The tab control was not showing with the busy cursor present.
Thanks,
Alan

Closed Issue: Asyncfileupload problem when hositng aspx page inside an iframe [27362]

$
0
0
Having problem with asyncfileupload control on page which is hosted inside an iframe.

Issue Description:
Create 3 aspx pages test1.aspx, test2.aspx, test3.aspx
On test1.aspx place an iframe control and set its src to 'test2.aspx'
On test2.aspx put an asyncfileupload control and a button. On the buttons postback event redirect it to test3.aspx (Response.redirec('test3.aspx')
Now run the application and upload the file through asyncfileupload control and then click on the button then what we have here is that though the page is redirected to test3.aspx, but its not inside the iframe but we see test3.aspx on the browser address bar.
On digging into the source code of asyncfileupload control i found on OnPreRender method a div is getting outputted

```
output.Write("<div id='" + ClientID + "'>");
output.Write(result);
output.Write("</div>");
```
which gets rendered before the doctype and ie shows the follwing error on developer tools console
HTML1113: Document mode restart from Quirks to IE9 Standards
Do note that the application is old hence its running in quircks mode by default.

Closed Unassigned: ajaxfileupload issue in ie compatibility view [27428]

$
0
0
I'm using HtmlEditorExtender in my project. in ie10, it's fine. but in compatibility view,i only can upload image once.by view the source code ,the image upload in HtmlEditorExtender is a AjaxFileUpload control. so i see the demo in the package,the AjaxFileUpload control has this issue too(only can upload once in ie compatibility view).
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Closed Issue: ModalPopupExtender Issues Resolved [26137]

$
0
0
Issue 1:
The new modal extender attaches the background and foreground elements to the form. This is great for resolving layout issues, but not so great when you are using a modal popup extender within update panels. With that new implementation you will get duplicate id errors. This current bugging fix was done because of the relative parent element issues.

Issue 1 Resolution:
Now the control always uses absolute positioning (not fixed in non IE6 situations). Removed the two lines of changes in the latest version (62110) and added a new method called _SetRelativeLocation. This enables you to have a relative parent element and still provide proper layout. Just mark your parent element with the attribute "relativewrap".

Issue 2:
The control doesnt stay in its position in the page (not the screen) when the control is configured with no x and y are set (centered positioning). You should be able to have the control position in the center, but then be able to scroll and or resize without the control moving from its absolute page position.

Issue 2 Resolution:
The control is now always absolute and can be set with no x and y (center positioned). When ModalPopupRepositionMode= RepositionOnWindowResize the control will not move on scroll. When ModalPopupRepositionMode= RepositionOnWindowScroll the control will not move on resize.

Issue 3:
When the browser is IE6 and the window is resized to a larger window the background does not cover the new window.

Issue 3 Resolution:
This automatically resolved with the new absolute positioning to resolve items 1 and 2
Comments: Thank you for your suggestion! We will keep it in mind during our future work.

Closed Issue: ComboBox throws exception when inside update panel [26821]

$
0
0
Placing a combobox inside a page that contains a ToolkitScriptManager and UpdatePanel causes a Javascript error as follows on an Ajax postback:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Version of AjaxControlToolKit.DLL: 4.1.40412.2

ASP.Net PAge Code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ComboTest.aspx.vb" Inherits="Admin_ComboTest" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ComboBox ID="ddlecountry" runat="server" AutoCompleteMode="SuggestAppend"
MaxLength="0" style="display: inline;" Width="200px">
<asp:ListItem Selected="True" Value="0">&lt;Select&gt;</asp:ListItem>
<asp:ListItem Value="1">Country A</asp:ListItem>
<asp:ListItem Value="2">Country B</asp:ListItem>
</asp:ComboBox>
<asp:Button ID="cmdrefresh" runat="server" Text="Refresh" />
</ContentTemplate>
</asp:UpdatePanel>

</div>
</form>
</body>
</html>


VB.Net Page:


Partial Class Admin_ComboTest
Inherits System.Web.UI.Page

Protected Sub cmdRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdrefresh.Click

Response.Write("It Worked.")

End Sub


End Class

Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Created Unassigned: overrride js function [27953]

$
0
0
Hi

do you have an example to override a js function of ajaxcontroltoolkit?

I need to override

Ajaxcontroltoolkit.updatepanelanimationbehavior.prototype._partialupdatebeginrequest

thanks


Closed Issue: MaximumNumberofFiles for AjaxFileUpload not Working in Chrome And FireFox [27229]

$
0
0
The MaximumNumberOfFiles in AjaxFileUpload doesnt work Chrome and Firefox..........If the max files mentioned is "1" then too it accepts multiple files .......... Please HELP!!!

Closed Issue: The tab container ondemand doesn't play nice with the AutoCompleteExtender. [27389]

$
0
0
The tab container ondemand doesn't play nice with the AutoCompleteExtender.

Somehow the tab renders before the javascript can. Leaving the autocompleteextender useless on the page.

```

<asp:TabContainer ID="TabContainer1" runat="server" Width="950px" OnDemand="true">
<asp:TabPanel ID="TabPanel2" runat="server" ToolTip="" HeaderText="Search" OnDemandMode="Once">
<ContentTemplate>
<script type="text/javascript">
function item_selected_Permissions(sender, e) {
var HiddenFieldUserPerms = $get('<%= HiddenFieldUserPerms.ClientID %>');
HiddenFieldUserPerms.value = e.get_value();
}
</script>
<asp:TextBox ID="txtUserName" runat="server" Width="350"></asp:TextBox>
<asp:AutoCompleteExtender ID="txtUserName_AutoCompleteExtender" runat="server" CompletionInterval="10" DelimiterCharacters="" Enabled="True" MinimumPrefixLength="1" ServiceMethod="GetUsers" ServicePath="~/MyWebservice.asmx" TargetControlID="txtUserName" FirstRowSelected="True" OnClientItemSelected="item_selected_Permissions" CompletionSetCount="20" UseContextKey="True">
</asp:AutoCompleteExtender>
<asp:HiddenField ID="HiddenFieldUserPerms" runat="server" />
<asp:Label ID="lblinvaliduser" runat="server" ForeColor="Red" Text="Please select a user from the suggestion list"
Visible="false"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorUserID" runat="server" ControlToValidate="txtUserName"
ErrorMessage="*" ValidationGroup="user"></asp:RequiredFieldValidator>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
```

Closed Issue: AsyncFileUpload Bug [27393]

$
0
0
When users are doing the upload using the AsyncFileUpload, a message appears in the control with the file's path in the server, but the message starts with "c:\fakepath\"...
Can i change this text?
Some users are thinking that that message is a bug.

Thanks!

E. Zarpelão

Closed Issue: How to change the Traget Control ID of TextboxWatermark Runtime [27426]

$
0
0
i want to change the Targer Control ID of textboxwatermark control runtime so how can i do that cause i am unable to get the TargetControlID property in .cs file after creating object of TextboxWatermark

Thanks

Closed Issue: Slider Handle seems to be disabled [27433]

$
0
0
Hi,

I have added the Extended Slider's dynamically from code behind. And I am getting the following errors:
![Image](https://skydrive.live.com/redir?resid=4CFD9A87074E190C!1037&authkey=!ALW0usssEbdJaxo).
"Sys.ArgumentException: Sys.ArgumentException: Please set valid values for the height and width attributes in the slider's CSS classes Parameter name: element size"

Although Slider renders fine and works perfectly fine on IE but not on Firefox and Chrome in these both browsers I simply can't change position of handle by clicking on the rail.

![Image](https://skydrive.live.com/redir?resid=4CFD9A87074E190C!1038&authkey=!ALW0usssEbdJaxo).

Any ideas what to do. I have already followed the following articles as well.

https://ajaxcontroltoolkit.codeplex.com/workitem/24421
https://ajaxcontroltoolkit.codeplex.com/workitem/27121

Thanks,

Attiqe

Closed Issue: Pasting into source tab adds in non-breaking spaces [27940]

$
0
0
HtmlEditorExtender issue

Why, when i paste the following code into the source tab, then switch to the design view, and then back again, does the editor insert non-breaking spaces everywhere?

```
<table style="margin: 20px auto; width: 640px;">
<tbody>
<tr>
<td>
<a href="http://www.website.com" title="" target="_blank">
<img src="http://www.website.com/Images/imagefile.png" style="width: 100%;" alt="ALT" /></a>
</td>
</tr>
<tr>
<td style="font-family: arial,helvetica,sans-serif; color: #282828; font-size: 16px; padding: 20px;">
<p>
Hi John,</p>
<p>
One line of text.</p>
<p>
Second line of text.</p>
<p>
Another line of text</p>
<div>
<a href="http://www.website.com/en/Brand/brand.aspx?SortBy=NewestDesc" title="title tag"
target="_blank">
<img src="http://www.wesbite.com/Images/imagefile2.jpg" style="width: 200px;
margin-top: 20px;" alt="Another alt" /></a></div>
<p>
Regards,<br />
The Wesbite Team</p>
<p>
'Some text pretending to be a quote.'</p>
</td>
</tr>
</tbody>
</table>
```

I've attached screenshots of what I'm seeing in a brand new web application project, and the ACT installed via nuget

Closed Issue: Active tab changes when it shouldn't, problem with AutoPostBack and hidden tabs [27102]

$
0
0
Hi!

Try the following:
1) Create page with 4 tabs on
2) Set the TabContainer to AutoPostBack=True
3) Set Visible = False on Tab3
4) Run the page and select tab 4.

Tab 4 will be selected for half a second then suddenly it reselect tab2, and OnActiveTabChanged is fired twice.
If tab3 is visible, then tab 4 can be selected.
If AutoPostBack=false, then you can selected tab 4.

Something must be wrong with the AutoPostBack function.

Regards
Per

Closed Issue: HTMLEditorExternder Image upload issue with IE11 [27565]

$
0
0
If I try to upload multiple images using the image upload in the HtmlEditorExtender with IE 11, the last image hangs at "Pending"

Closed Issue: Update panel genera muchos script automaticamente de lado del cliente [27882]

$
0
0
Buenas tardes, tengo una pagina con update panel y controles dinámicos en cada ejecución de un boton o cualquier acción se genera un script en la pagina del lado del cliente me imagino que merma el rendimiento de la aplicación, adjunto un archivo con el header y los script autogenerados

Closed Issue: ModalPopupExtender Flickering with May Release [26968]

$
0
0
I know that this used to be a problem, but seemed to have gone away. In the latest version, if I click on a control to show the modal popup, then hide it, and then do a postback, there is a brief flicker when that modal popup reappears on the screen. I am setting "display:none" on the hidden panel as well. It's as if that style is not being persisted on the postback.

Closed Issue: TabContainer incorrectly triggers validators [27111]

$
0
0
When the TabContainer is set to OnDemand = True and the TabPanel contains a validator like a requiredfieldvalidator then the validator will be triggered when the tab is activated although the form has not been submitted. You can recreate this issue using the following code:

<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"
ondemand="True">
<asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
</asp:TabPanel>
<asp:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server" style="margin-bottom: 0px"
ValidationGroup="Test"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1"
ForeColor="Red" ValidationGroup="Test">*</asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="Test" />
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
Viewing all 4356 articles
Browse latest View live


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