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

Closed Issue: HTMLEditorExtender submit a wrong HTML text. [27185]

$
0
0
I try to make a string align center. The Editor gen this tags " <P align=right>Hello world!</p>", but when I post to database it was changed to " &lt;p align=right&gt;Hello world!\r\n<p></p>" instead. And when I read and write to the textbox control, the extender cut my code to "<P>Hello world!<p></p>".

That's not my mind.

And I try to make this from the sample site. it also being done this with IE 8.

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditorExtender/HTMLEditorExtender.aspx


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: Sys.WebForms.PageRequestManagerServerErrorException ONLY on first tab of TabContainer control [27193]

$
0
0
I'm facing this issue for a while, still can't find a rational solution to that, I'm hoping for some external advice here.

I have a pretty complex ascx control in a page. In this user control I have an update panel as a container of a TabContainer. I have a number of tabs on it, each of them hosting a GridView with many controls.
I have used toolkit release from september 2009 (30930) for a long time on this page, and all was running pretty fine till then.

When I tried to update AjaxControlToolkit to the latest release (may 2012) I started to face a really annoying issue: whenever I try to fire a GridView command on the first tab page freezes and I get error in subject. More precisely:

Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Please note the following:
1. The error is showed just for command events, I can still fire sorting commands on the gridview, and I can interact with the whole page without any other issue.
2. On any tab other than the first all works: commands are fired and executed just fine. Each time I return on first tab the issue shows up again, there's no difference between first load and following postbacks. GridViews inside tabs are engineered exactly in the same way and what's changing between them is just the datasource.
3. The issue is not showing on previous AjaxControlToolkit releases: it starts to show up from november 2001 release. Page is working pretty fine with september 2011 release and all previous.
4. I don't really think that the error message is adequate in this case: besides, I don't want to turn off EventValidation or use RegisterForEventValidation to correct what should run fine without a patch like that.

I can provide all the code about this, but it's a large amount of code and I don't think it's necessary, at least for this initial report. Still pretty convinced there's something wrong going on behind the scenes of the toolkit at the moment.

If anyone is facing something related is welcome to join, any kind of advice is appreciated.
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Commented Issue: Calendar animating incorrect when size is changed [27905]

$
0
0
The Calendar animation is incorrect when the width or the height of the calendar body is changed via css class. I have made some changes to the __Calendar.js__ file to fix the issue. I dont know if it the best fixe but it seams to work correctly.

__Code change summay__

Removed Hard-Coded Variable
this._width = 170;
this._height = 139;

Replace Variable By Corresponding

newElement.offsetWidth
newElement.offsetHeight

oldElement.offsetWidth
oldElement.offsetHeight

Exemple:
$common.setLocation(newElement, { x: 0, y: newElement.offsetWidth });
$common.setLocation(newElement, { x: 0, y: newElement.offsetHeight });

Include modified javascript. Hope this will help.

Comments: Hi! Thank you for your suggestion. We have tested the Calendar extender with custom styles and have not noticed any problem with animation. Would you please provide a sample project showing the issue so that we can investigate it? Best regards, Fadil

Closed Issue: MaskedEdit + DateTime bug [26980]

$
0
0
I use a masked edit control to user input date and time, but I have a problem. When user input date and time, control replace time on date.

Example:

User input:

01.01.2011 12:20:33

Unfocus. Control replace time on date:

01.01.2011 01.01.20

Page:

<asp:TextBox ID="FromDate" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="FromDateTimeMaskedEdit" runat="server"
TargetControlID="FromDate"
Mask="99/99/9999 99:99:99"
MessageValidatorTip="true"
OnFocusCssClass="timeeditfocus"
OnInvalidCssClass=".timeeditinvalid"
MaskType="DateTime"
ErrorTooltipEnabled="True"
UserDateFormat="DayMonthYear"
UserTimeFormat="TwentyFourHour" />
<asp:MaskedEditValidator ID="FromDateTimeMaskedEditValidator" runat="server"
ControlExtender="FromDateTimeMaskedEdit"
ControlToValidate="FromDate"
IsValidEmpty="False"
EmptyValueMessage="Date and time are required"
InvalidValueMessage="Date and/or time is invalid"
Display="Dynamic"
TooltipMessage="Input a date and time"
EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*" />

PS: Sorry for my bad english.
Comments: bocca, thank you for sharing your experience!

Commented Issue: Calendar animating incorrect when size is changed [27905]

$
0
0
The Calendar animation is incorrect when the width or the height of the calendar body is changed via css class. I have made some changes to the __Calendar.js__ file to fix the issue. I dont know if it the best fixe but it seams to work correctly.

__Code change summay__

Removed Hard-Coded Variable
this._width = 170;
this._height = 139;

Replace Variable By Corresponding

newElement.offsetWidth
newElement.offsetHeight

oldElement.offsetWidth
oldElement.offsetHeight

Exemple:
$common.setLocation(newElement, { x: 0, y: newElement.offsetWidth });
$common.setLocation(newElement, { x: 0, y: newElement.offsetHeight });

Include modified javascript. Hope this will help.

Comments: Modify: Calendar container and body width and height via CssClass: .ajaxCalendar .ajax__calendar_container { width: 250px;} .ajaxCalendar .ajax__calendar_body { height: 240px;} After: click header on month/year + select a date. The inner calendar animation content is displaced.

Commented Issue: custom MasterPage ID breaks HtmlEditorExtender [27157]

$
0
0
(Using MAY 2012 ASP.NET 3.5 AJAX Toolkit release, IE7) When using a MasterPage, if you set the ID then the HtmlEditorExtender "popupDiv" always displays.

Ex:

on MasterPage codebehind:
protected void Page_Init(object sender, EventArgs e)
{
this.ID = "TEST"; // comment this out, the HtmlEditorExtender works properly
}

on Default.aspx - have the textbox and HtmlEditorExtender inside the ContentPlaceHolder

========== UPDATE

I forgot to mention, the reason for this appears to be because the "popupDiv" does not update with the new MasterPage ID, but the other elements do.

Using the MasterPage, setting this.ID = "TEST" on Page_Init

Default.aspx page referencing MasterPage:
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="cphContent">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Rows="10" />
<AjaxControlToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TextBox1" />
</asp:Content>

renders as:

<textarea name="TEST$cphContent$TextBox1" rows="10" cols="20" id="TEST_cphContent_TextBox1"></textarea>
<input type="hidden" name="TEST$cphContent$HtmlEditorExtender1_ClientState" id="TEST_cphContent_HtmlEditorExtender1_ClientState" /><div Id="ctl00_cphContent_HtmlEditorExtender1_popupDiv" style="opacity: 0;" class="popupDiv"><div Id="ctl00_cphContent_HtmlEditorExtender1_btnCancel" style="float: right; position:relative; padding-left: 20px; top:10px; width: 55px; border-color:black;border-style: solid; border-width: 1px;cursor:pointer;" float="right" unselectable="on">Cancel</div></div>


As you can see, the popupDiv and btnCancel div both say "ctl00" instead of "TEST"... I'm thinking this has something to do with why this displays when you modify the MasterPage ID...
Comments: Would you please clarify what "popupDiv always displays" means? Shouldn't it be visible by default?

Closed Issue: CustomValidator and ValidatorCalloutExtender cause script error on post back [20094]

$
0
0
<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
........................
<asp:UpdatePanel ID="MainUpdatePanel" runat="server">
<ContentTemplate>
<cc1:CustomValidator ID="cvCountry" runat="server" ClientValidationFunction="cvCheckCountry_Validate" EnableClientScript=true
Display="None" ErrorMessage="Please select country!" SetFocusOnError=true ValidationGroup="REG"/>
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="cvCountry"
Width="300px" />
...............
</ContentTemplate>
</asp:UpdatePanel>

When I try to submit the form I get the following JavaScript error:

Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: id


I saw that this error had been fixed already but in my case it repeats 100%. AJAX DLL version 3 . 0 . 2 0 8 2 0 . 1 6 5 9 8

How to fix this error? I tried to use validators from http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx but no luck.
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: Sys Undefined [27938]

$
0
0
I gotten one website that I downloaded to work with the autocomplete extender. I then created a new data scaffolding website using an ADO entity model. I have created a custom list form, which was generated by the data scaffolding, and am trying to put an autocomplete extender on it. I get a sys undefined error in internet explorer. I go into the debugger and see the error.

Sys.Application.add_init(function() {
$create(Sys.Extended.UI.AutoCompleteBehavior, {"completionSetCount":100,"delimiterCharacters":"","enableCaching":false,"id":"txtName_AutoCompleteExtender","minimumPrefixLength":2,"serviceMethod":"GetDevelopments","servicePath":"/SewerCleaningHeaders/List.aspx","useContextKey":true}, null, null, $get("ContentPlaceHolder1_txtName"));
});

sys undefined.

I downloaded the the 15.1.3 version of ajax control tookit. It has done away with toolkit script manager and replaced it with scriptmanager. Which is what I needed because the page generated by the datascaffolding already has a script manager in the site master.

The code for the site master is as follows:

<%@ Master Language="VB" CodeFile="Site.master.vb" Inherits="Site" %>

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>


<!DOCTYPE html>

<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<title>Dynamic Data Site</title>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>

<h1 class="DDMainHeader">Dynamic Data Site</h1>
<div class="DDNavigation">
<a runat="server" href="~/"><img alt="Back to home page" runat="server" src="DynamicData/Content/Images/back.gif" />Back to home page</a>
</div>

<form id="form1" runat="server">
<div>
<%-- TODO: Enable partial rendering by setting the EnablePartialRendering attribute to "true" to provide a smoother browsing experience.
Leaving partial rendering disabled will provide a better debugging experience while the application is in development. --%>

<asp:ScriptManager id=ToolKitScriptManager1 runat="server" EnablePartialRendering="False" >
<Scripts>
<asp:ScriptReference Path="~/Scripts/" Name="jquery" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />
</Scripts>
</asp:ScriptManager>

the code in the custom form that I am only modifying is as follows ( with autocomplete extender on bottom)

<%@ Page Language="VB" MasterPageFile="~/Site.master" CodeFile="List.aspx.vb" Inherits="List" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
<DataControls>
<asp:DataControlReference ControlID="GridView1" />
</DataControls>
</asp:DynamicDataManager>




<h2 class="DDSubHeader"><%= table.DisplayName%></h2>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="DD">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
HeaderText="List of validation errors" CssClass="DDValidator" />
<asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1" Display="None" CssClass="DDValidator" />

<asp:QueryableFilterRepeater runat="server" ID="FilterRepeater">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("DisplayName") %>' OnPreRender="Label_PreRender" />
<asp:DynamicFilter runat="server" ID="DynamicFilter" OnFilterChanged="DynamicFilter_FilterChanged" /><br />
</ItemTemplate>
</asp:QueryableFilterRepeater>
<br />
</div>

<asp:EntityDataSource ID="GridDataSource" runat="server" EnableDelete="true" />
<asp:Button ID="Button1" runat="server" Text="Search" />
<br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource" EnablePersistedSelection="true"
AllowPaging="True" AllowSorting="True" CssClass="DDGridView"
RowStyle-CssClass="td" HeaderStyle-CssClass="th" CellPadding="6">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"
/>&nbsp;<asp:LinkButton runat="server" CommandName="Delete" Text="Delete"
OnClientClick='return confirm("Are you sure you want to delete this item?");'
/>&nbsp;<asp:DynamicHyperLink runat="server" Text="Details" />
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField Text="Add" DataNavigateUrlFormatString="~/SewerCleaningHeaders/Insert.aspx" />
</Columns>

<PagerStyle CssClass="DDFooter"/>
<PagerTemplate>
<asp:GridViewPager runat="server" />
</PagerTemplate>
<EmptyDataTemplate>
There are currently no items in this table.
</EmptyDataTemplate>
</asp:GridView>

<div class="DDBottomHyperLink">
<asp:DynamicHyperLink ID="InsertHyperLink" runat="server" NavigateUrl=<%# table.GetActionPath("videolist", GetDataItem())%> Action="videolist"><img runat="server" src="~/DynamicData/Content/Images/plus.gif" />Insert new item</asp:DynamicHyperLink>
</div>


</ContentTemplate>
</asp:UpdatePanel>



<asp:Label runat="server" ID="lblReferrerName" Text="Address: "></asp:Label>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<asp:Label runat="server" ID="Label1" Text=" Select address and press button "></asp:Label>
<asp:Button ID="Button2" runat="server" Text="Button" Width="67px" />


<asp:AutoCompleteExtender ID="txtName_AutoCompleteExtender" BehaviorID="txtName_AutoCompleteExtender" runat="server"
DelimiterCharacters="" Enabled="True"
TargetControlID="txtName" MinimumPrefixLength="2" CompletionInterval="1000"
EnableCaching="false" FirstRowSelected="false" CompletionSetCount= "100" ServiceMethod="GetDevelopments"
UseContextKey="True">
</asp:AutoCompleteExtender>

<script src="~/Scripts/MicrosoftAjaxToolkit/MicrosoftAjax.js" type="text/javascript"></script>
<script src="~/Scripts/MicrosoftAjaxToolkit/Debug/AutoComplete.debug.js" type="text/javascript"></script>



</asp:Content>

I've never actually made one of my exsisting website work with the ajax am I missing something? I've worked on this for days and have tried many different things like copying the ajax control toolkit scripts, .js files to my website's scripts directory. Is that the wrong way to do it. They weren't there before. Tutorials that I've watched haven't even mentioned the script files but I saw it as one of the solutions.

Commented Issue: AutoCompleteExtender removes formatting from string [27196]

$
0
0
In my webMethod code I format the strings returned to the control...
String.Format("{0,12} - {1}", objectId, objectText);
What this does is pad the id value to the size of 12 characters, I want them all to line up when displayed to the user.

The formatting is intact all the way until I do a "return lst.ToArray();" out of the webmethod.

However, when the list is displayed in the extender, all leading spaces are removed, as are the spaces around the hyphen separating the two parts of the string. I want the string returned as is, how do you do that?
Comments: It seems that Sys.Serialization.JavaScriptSerializer.deserialize located in MicrosoftAjax.debug.js corrupts response data during parameters validation. This is the file which AJAX Control Toolkit has no control over, so you actually cannot use whitespace-formatted strings in AutoCompelete extender completion list items.

Closed Issue: AutoCompleteExtender removes formatting from string [27196]

$
0
0
In my webMethod code I format the strings returned to the control...
String.Format("{0,12} - {1}", objectId, objectText);
What this does is pad the id value to the size of 12 characters, I want them all to line up when displayed to the user.

The formatting is intact all the way until I do a "return lst.ToArray();" out of the webmethod.

However, when the list is displayed in the extender, all leading spaces are removed, as are the spaces around the hyphen separating the two parts of the string. I want the string returned as is, how do you do that?

Closed Issue: Iframe in Ajax Tab [12133]

$
0
0
Hello,

I have a problem with an Ajax Tab Container with an iframe in it. If i leave ouit the frame the tab control shows ok. Whenever I insert an iframe in the tab control the tabs are not shown anymore. In fact the css-property visibility is set to hidden. Whenever I try to force this value back to visible with javascript, the rest of the tab layout is completely messed up. Here is the code with the Iframe. With the Iframe, no tabs, without the iframe everthing looks fine. (this actually a simplified example of my real code, but it shows the problem and rules out any other conflicts with my existing code).

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<ajax:TabContainer id="tctest" runat="server">
<ajax:TabPanel ID="tabTest" HeaderText="test" runat="server">
<HeaderTemplate>
Test
</HeaderTemplate>
<ContentTemplate>
<iframe src="http://www.google.com" />
</ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
</div>
</form>
</body>
</html>


Any clues?
Comments: pfSNP, thank you for sharing your experience!

Commented Unassigned: Sys Undefined [27938]

$
0
0
I gotten one website that I downloaded to work with the autocomplete extender. I then created a new data scaffolding website using an ADO entity model. I have created a custom list form, which was generated by the data scaffolding, and am trying to put an autocomplete extender on it. I get a sys undefined error in internet explorer. I go into the debugger and see the error.

Sys.Application.add_init(function() {
$create(Sys.Extended.UI.AutoCompleteBehavior, {"completionSetCount":100,"delimiterCharacters":"","enableCaching":false,"id":"txtName_AutoCompleteExtender","minimumPrefixLength":2,"serviceMethod":"GetDevelopments","servicePath":"/SewerCleaningHeaders/List.aspx","useContextKey":true}, null, null, $get("ContentPlaceHolder1_txtName"));
});

sys undefined.

I downloaded the the 15.1.3 version of ajax control tookit. It has done away with toolkit script manager and replaced it with scriptmanager. Which is what I needed because the page generated by the datascaffolding already has a script manager in the site master.

The code for the site master is as follows:

<%@ Master Language="VB" CodeFile="Site.master.vb" Inherits="Site" %>

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>


<!DOCTYPE html>

<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<title>Dynamic Data Site</title>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>

<h1 class="DDMainHeader">Dynamic Data Site</h1>
<div class="DDNavigation">
<a runat="server" href="~/"><img alt="Back to home page" runat="server" src="DynamicData/Content/Images/back.gif" />Back to home page</a>
</div>

<form id="form1" runat="server">
<div>
<%-- TODO: Enable partial rendering by setting the EnablePartialRendering attribute to "true" to provide a smoother browsing experience.
Leaving partial rendering disabled will provide a better debugging experience while the application is in development. --%>

<asp:ScriptManager id=ToolKitScriptManager1 runat="server" EnablePartialRendering="False" >
<Scripts>
<asp:ScriptReference Path="~/Scripts/" Name="jquery" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />
</Scripts>
</asp:ScriptManager>

the code in the custom form that I am only modifying is as follows ( with autocomplete extender on bottom)

<%@ Page Language="VB" MasterPageFile="~/Site.master" CodeFile="List.aspx.vb" Inherits="List" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
<DataControls>
<asp:DataControlReference ControlID="GridView1" />
</DataControls>
</asp:DynamicDataManager>




<h2 class="DDSubHeader"><%= table.DisplayName%></h2>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="DD">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
HeaderText="List of validation errors" CssClass="DDValidator" />
<asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1" Display="None" CssClass="DDValidator" />

<asp:QueryableFilterRepeater runat="server" ID="FilterRepeater">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("DisplayName") %>' OnPreRender="Label_PreRender" />
<asp:DynamicFilter runat="server" ID="DynamicFilter" OnFilterChanged="DynamicFilter_FilterChanged" /><br />
</ItemTemplate>
</asp:QueryableFilterRepeater>
<br />
</div>

<asp:EntityDataSource ID="GridDataSource" runat="server" EnableDelete="true" />
<asp:Button ID="Button1" runat="server" Text="Search" />
<br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource" EnablePersistedSelection="true"
AllowPaging="True" AllowSorting="True" CssClass="DDGridView"
RowStyle-CssClass="td" HeaderStyle-CssClass="th" CellPadding="6">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"
/>&nbsp;<asp:LinkButton runat="server" CommandName="Delete" Text="Delete"
OnClientClick='return confirm("Are you sure you want to delete this item?");'
/>&nbsp;<asp:DynamicHyperLink runat="server" Text="Details" />
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField Text="Add" DataNavigateUrlFormatString="~/SewerCleaningHeaders/Insert.aspx" />
</Columns>

<PagerStyle CssClass="DDFooter"/>
<PagerTemplate>
<asp:GridViewPager runat="server" />
</PagerTemplate>
<EmptyDataTemplate>
There are currently no items in this table.
</EmptyDataTemplate>
</asp:GridView>

<div class="DDBottomHyperLink">
<asp:DynamicHyperLink ID="InsertHyperLink" runat="server" NavigateUrl=<%# table.GetActionPath("videolist", GetDataItem())%> Action="videolist"><img runat="server" src="~/DynamicData/Content/Images/plus.gif" />Insert new item</asp:DynamicHyperLink>
</div>


</ContentTemplate>
</asp:UpdatePanel>



<asp:Label runat="server" ID="lblReferrerName" Text="Address: "></asp:Label>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<asp:Label runat="server" ID="Label1" Text=" Select address and press button "></asp:Label>
<asp:Button ID="Button2" runat="server" Text="Button" Width="67px" />


<asp:AutoCompleteExtender ID="txtName_AutoCompleteExtender" BehaviorID="txtName_AutoCompleteExtender" runat="server"
DelimiterCharacters="" Enabled="True"
TargetControlID="txtName" MinimumPrefixLength="2" CompletionInterval="1000"
EnableCaching="false" FirstRowSelected="false" CompletionSetCount= "100" ServiceMethod="GetDevelopments"
UseContextKey="True">
</asp:AutoCompleteExtender>

<script src="~/Scripts/MicrosoftAjaxToolkit/MicrosoftAjax.js" type="text/javascript"></script>
<script src="~/Scripts/MicrosoftAjaxToolkit/Debug/AutoComplete.debug.js" type="text/javascript"></script>



</asp:Content>

I've never actually made one of my exsisting website work with the ajax am I missing something? I've worked on this for days and have tried many different things like copying the ajax control toolkit scripts, .js files to my website's scripts directory. Is that the wrong way to do it. They weren't there before. Tutorials that I've watched haven't even mentioned the script files but I saw it as one of the solutions.
Comments: Would you provide a sample project that illustrates the described problem?

Commented Issue: Two components with the same id '{0}' can't be added to the application + filteredtextboxextender + updatepanel [27134]

$
0
0
I am using ajaxcontroltoolkit 4.1.51116

I have usercontrol1 which have forms field like textboxe with filteredtextboxextender.

I have taken this on another control from where i am opening fancybox popup and inside that usercontrol1.

First time it works great until i click on save button and my popup gets closed, it is showing me error like

Error: Sys.InvalidOperationException: Two components with the same id '{0}' can't be added to the application.

Source File: {websitepath}/ScriptResource.axd?d=wPieHs6t0D_3vdX0o6jGuxENo50qDQAI6KpZzOaUWxo9yqPP-ti3B-I8ReqWgk84TjzrH821Til527ueAUJxWZyLMgSWZ9e-GDW79kAbC16nGqq2-J1vH0LU75-t-UoUIR-VhA2&t=ffffffffc9f82b39

I have gone thru many formus and even issues on codeplex related with this but it is about autocomplete behavior but not about filteredtextboxextender.
Comments: Would you provide a sample project that illustrates the described problem?

Closed Issue: HtmlEditorExtender Background Color and Firefox [27158]

$
0
0
When using Firefox 12 with the HtmlEditorExtender, if you change the background color by clicking the background color button, then the entire background is changed. Furthermore, this change is not preserved across a postback.
Comments: We tested this control in all modern browsers and did not detect the described problem. Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Commented Issue: Bug in Tabcontrol Latest Release place in ModalPopupExtender [27119]

$
0
0
Placing Tabcontrol in ajax ModalPopupExtender Gives error how to fix it...

htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

_setFocus: function (obj) {
$get("__tab_" + obj.get_element().id).focus();

Sample Appliation code is

<asp:Button ID="btnUpdateTextItem_Cancel" runat="server" CssClass="btnUpdateTextItem_Cancel btnright"
Text="Cancel" />
<asp:Button ID="btnDoNothing1" runat="server" CssClass="btnright" Text="Hide" />
<ajaxToolkit:ModalPopupExtender ID="mpe_UpdateText" runat="server" DynamicServicePath=""
Enabled="True" TargetControlID="btnDoNothing1" PopupControlID="pnlUpdateTextItem"
BackgroundCssClass="modalBackground" OkControlID="ImageButton2" CancelControlID="btnUpdateTextItem_Cancel">
</ajaxToolkit:ModalPopupExtender>
<asp:ImageButton ID="ImageButton2" CssClass="close" runat="server" CausesValidation="False"
ImageUrl="../Images/close.gif" ToolTip="Close Email Collection " />
<asp:Panel ID="pnlUpdateTextItem" runat="server" CssClass="popup">
<ajaxToolkit:TabContainer ID="Tabsnickbee" runat="server" CssClass="tab">
<ajaxToolkit:TabPanel runat="server" ID="tabDetail" HeaderText="Details">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Role Name"></asp:Label>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel runat="server" ID="TabReports" HeaderText="Reports">
<ContentTemplate>
<h3>
Reports
</h3>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

How to solve the issue.....



Comments: Would you provide a complete sample project?

Closed Issue: NumericUpDown cause insistent call to PostBack when the TextBox has AutoPostBack="true" [27213]

$
0
0
AjaxControlToolkit.Version = 4.1.40412.2

By assigning AutoPostBack = "true" to a NumericUpDown TextBox, the NumericPostBack calls the value change strongly. But not necessarily call the method "TextBox_TextChanged".

This problem occurs with DataTemplate, Repeater, UpdatePanel, or any type of block for a "NumericUpDown" within a "Repeater" inside a "UpdatePanel" which sets out classes of any type (db tables, list, array, etc.). in connection with a method in "TextChanged" and "AutoPostBack = true" in a TextBox

Navigating the AJAX Control Toolkit NumericUpDown found error when creating the NumericUpDown where to make a bypass when the "value" of the TextBox has not changed compared to the current value in NumericUpDown.

Nothing that can be done from ASP.Net to correct the problem.

Then the problem is corrected in "setCurrentToTextBox" ignoring the value assignment and execution of events, if the value of "_elementTextBox" equals the "value"
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Commented Unassigned: Add Extender Missing after upgrade [27937]

$
0
0
I installed the new Ajax Control ToolKit 15.1.3.0, uninstalled an older version from an existing project and migrated the project to the new version. I replaced all the old toolscriptmanager with ScriptManager on each page. All existing controls/ extenders already on there work and the controls show up fine in the Toolbox.

I am missing all the options to extend anything new. There is no context Add Extender options available anymore.
Comments: I tried in a new project also - no options at all to Add Extender. If I try to drag anything onto the design surface it acts like it is going to, but nothing happens and no error.

Commented Issue: HtmlEditorExtender - Edit text outside generated div [27197]

$
0
0
You can edit the text of the page outside the div generated by the HtmlEditorExtender.
Just select any text on the page and apply any format (bold, italic, align right, etc).
It happens only in Internet Explorer.

You can do it on the sample site:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditorExtender/HTMLEditorExtender.aspx
Comments: The bug is a bit funny but most people will not find it. I think the impact is low.

Closed Issue: HtmlEditorExtender OnUploadComplete event don't fire [27195]

$
0
0
Ajax Control Toolkit Version = 4.1.60501.0
If URL with QueryString, HtmlEditorExtender OnUploadComplete event can't be fired.

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: AjaxFileUpload in HTMLEditorExtender fails to upload if the extender is in a not visible Panel and then set the Panel visible [27216]

$
0
0
I have a HTMLEditorExtender with AjaxFileUpload toolbar in it. and the HTMLEditorExtender is in the asp:Panel.

This Panel is not visible(set Visible="False" in aspx page) by default, and in the first time the page load, I will judge some condition and then set the Panel's Visible property to "true".

At this condition, the file upload will not work.

The detailed behavior is:
select a jpg file and click "upload", a progress is shown from 0% to 100%,
but no event triggered(can not enter ImageUploadComplete function), it seems hang.
and no error message showed.

I have a workaround to fix my issue:
use style to set the Panel's display property to "none" and then set it to "block".
This time it works!
Comments: Thank you for sharing your experience!
Viewing all 4356 articles
Browse latest View live


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