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

Created Unassigned: Mask Edit Extender Issue [27595]

$
0
0
Hi,

I have used Mask Edit Extender control in our project. Please find the code below.

__Code__

<cc1:MaskedEditExtender ID="txtSample_Mask" runat="server" __Mask="09999"__ Enabled="True" TargetControlID="txtSample"ClearMaskOnLostFocus="false">
</cc1:MaskedEditExtender>
<asp:TextBox ID="txtSample" runat="server"></asp:TextBox>

__Problem :__

Adds a __zero__ character when you each time __focused__ to target textbox.

__References :__

http://ajaxcontroltoolkit.codeplex.com/releases/view/105897

We referred the latest bug release report in the above url , it seems that the bug __"____26685 MaskedEditExtender@(ClearMaskOnLostFocus=false) adds a zero character when you each focused to target textbox"__ was fixed.

We are facing the same problem in the latest release so we suspect that problem still exist in the latest release.

We are using ajax tool kit version :
__Version 7.0429__

Please give your suggestion to implement the change.

Thanks
Arun


Created Unassigned: WindowsAzure.Storage dependency breaks Net 3.5 NuGet package [27596]

$
0
0
WindowsAzure.Storage depends on Microsoft.Data.OData, which in turn depends on System.Spatial, which isn't available for NET 3.5 projects.

Meh.

Created Unassigned: Brand new tabControl has brand new issue: Message: Object doesn't support this property or method [27597]

$
0
0
Using nested tab, during which, previously had many issues documented with the .focus, that's gone, but now: Message: Object doesn't support this property or method --> Message: Object doesn't support this property or method
Line: 32
Char: 13
Code: 0
URI: https://emgsitesdev.upmc.com/ContactManagement/ScriptResource.axd?d=cTTeDFCuHuecIeAZzRJNRcnkGhLITdKxbXkIrhsXzljsJP85g41ZkgrReKymG1wfUE70vfN9FYHBF8yMSe-vuZMHnKysP6vvD_JinnD0MsVlBjH_L1YbGiPObzs-VeKp6kEpoQ2&t=51e37521

```
// Name: jQuery.Tabs.TabPanel.debug.js
// Assembly: AjaxControlToolkit
// Version: 4.1.7.1213
// FileVersion: 4.1.7.1213
// (c) 2010 CodePlex Foundation
(function(window, $) {

$act.createWidget('tabPanel', $.Widget, {

options: {
enabled: true,
scrollBars: "None",
dynamicServicePath: null,
dynamicServiceMethod: null,
dynamicContextKey: null,
onDemandMode: "Always",
updatePanelID: null,
wasLoadedOnce: false,
owner: null
},

_events: ["click", "populating", "populated"],

_create: function() {
var self = this,
opt = self.options,
elId = self.element.attr('id');

self._active = false;
self._tab = $('#' + elId + "_tab");
self._header = $("#__tab_" + elId);
__ self._tabIndex = opt.owner.get_tabs().length;__
```

Edited Unassigned: IE8: Brand new tabControl has brand new issue: Message: Object doesn't support this property or method [27597]

$
0
0
This is in IE:8 only. Originally I thought it was a nested tabcontrol (many issues documented with the .focus, that's gone, but now: ), but I removed the nested control and now: Message: Object doesn't support this property or method --> Message: Object doesn't support this property or method
Line: 32
Char: 13
Code: 0
URI: https://emgsitesdev.upmc.com/ContactManagement/ScriptResource.axd?d=cTTeDFCuHuecIeAZzRJNRcnkGhLITdKxbXkIrhsXzljsJP85g41ZkgrReKymG1wfUE70vfN9FYHBF8yMSe-vuZMHnKysP6vvD_JinnD0MsVlBjH_L1YbGiPObzs-VeKp6kEpoQ2&t=51e37521

```
// Name: jQuery.Tabs.TabPanel.debug.js
// Assembly: AjaxControlToolkit
// Version: 4.1.7.1213
// FileVersion: 4.1.7.1213
// (c) 2010 CodePlex Foundation
(function(window, $) {

$act.createWidget('tabPanel', $.Widget, {

options: {
enabled: true,
scrollBars: "None",
dynamicServicePath: null,
dynamicServiceMethod: null,
dynamicContextKey: null,
onDemandMode: "Always",
updatePanelID: null,
wasLoadedOnce: false,
owner: null
},

_events: ["click", "populating", "populated"],

_create: function() {
var self = this,
opt = self.options,
elId = self.element.attr('id');

self._active = false;
self._tab = $('#' + elId + "_tab");
self._header = $("#__tab_" + elId);
__ self._tabIndex = opt.owner.get_tabs().length;__
```

Commented Unassigned: Hashing algorithm isn't FIPS Compliant [27501]

$
0
0
Our servers are set to require FIPS-compliant encryption/hashing algorithms. I implemented the July 2013 release of the AjaxControlToolkit and subsequently encountered the following error. Note that this error occurs only if debug=false (release mode). We are using .Net 4.5 on IIS 7.5, Windows 2008 R2.

Server Error: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

Stack Trace:
[InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.]
System.Security.Cryptography.SHA256Managed..ctor() +10438673
AjaxControlToolkit.ToolkitScriptManagerHelper.Hashing(String content) +45
AjaxControlToolkit.ToolkitScriptManagerCombiner.GetCombinedScriptContentHash(HttpContextBase context, String[] bundles) +32
AjaxControlToolkit.ToolkitScriptManager.OnLoad(EventArgs e) +256
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

Is there a way to set the hashing algorithm???

Impact: Because this error occurs on every page with a ToolScriptManager, we cannot upgrade the AjaxControlToolkit until this issue is resolved!
Comments: Any progress on this? Got to a point we wanted to update, turned debugging off, bang, got FIPS. Had to roll back, which screwed up other packages.

Created Unassigned: Issue with Microsoftajax.js delivered using ajaxcontroltoolkit [27598]

$
0
0
I am facing an issue with the MicrosoftAjax.js file being delivered by the ajaxcontroltoolkit. I am using the december 2013 release of the toolkit.

Basically, the default microsoftajax.js delivered by the scriptmanager contains a check to see if the function setProperty exists and then tries to use in case the browser is IE. The script delivered by ajaxcontroltoolkit does not have that check and so my component (Performancepoint dashboard) breaks. I need the toolkitscriptmanager for the toolkit components to work but when I put it my PPS charts break. Any easy solutions other than me taking the source, making the change and compiling it.

Name: MicrosoftAjax.debug.js
// Assembly: AjaxControlToolkit
// Version: 4.5.7.1213
// FileVersion: 4.5.7.1213


get_xml: function XMLHttpExecutor$get_xml()

__//script from ajaxcontroltoolkit__
else if (navigator.userAgent.indexOf('MSIE') !== -1) {
xml.setProperty('SelectionLanguage', 'XPath');

__//script from default scriptmanager__
else if (navigator.userAgent.indexOf('MSIE') !== -1 && typeof(xml.setProperty) != 'undefined') {

There is an extra check in the script generated by the default scriptmanager.


Created Unassigned: AutoCompleteExtender only works until partial postback in Chrome [27599]

$
0
0
I have a page using a master page, which has an updatepanel and updateprogress in it. On the child page I have a textbox with an AutoCompleteExtender making use of the OnClientPopulated method to format the display of the information retrieved from the web service. In Chrome, this method is called fine if the user executes it first, but if the user does anything else on the page first that causes a postback, the extender stops calling this javascript method and simply displays the data as returned from the web service in the list of options. It works fine in IE 7 and above, no problems. Any ideas on why this would happen and only in Chrome? I haven't tested in Firefox or any other browsers.

Edited Unassigned: AutoCompleteExtender only works until partial postback in Chrome [27599]

$
0
0
I have a page using a master page, which has an updatepanel and updateprogress in it. On the child page I have a textbox with an AutoCompleteExtender making use of the OnClientPopulated method to format the display of the information retrieved from the web service. In Chrome, this method is called fine if the user executes it first, but if the user does anything else on the page first that causes a postback, the method will not function the same way, since the UL object that contains the items of items does not contain any items at the time that the method is called. However, the list still displays the data as returned from the web service in the list of options, albeit that they cannot be formatted by the OnClientCompleted method. It works fine in IE 7 and above, no problems. Any ideas on why this would happen and only in Chrome? I haven't tested in Firefox or any other browsers.

Edited Unassigned: AutoCompleteExtender only works until partial postback in Chrome [27599]

$
0
0
I have a page using a master page, which has an updatepanel and updateprogress in it. On the child page I have a textbox with an AutoCompleteExtender making use of the OnClientPopulated method to format the display of the information retrieved from the web service. In Chrome, this method is called fine if the user executes it first, but if the user does anything else on the page first that causes a postback, the method will not function the same way, since the UL object that contains the list of items does not contain any items at the time that the method is called. However, the page still displays the list of options as returned from the web service below the textbox, albeit that they are not formatted by the OnClientCompleted method. It works fine in IE 7 and above, no problems. Any ideas on why this would happen and only in Chrome? I haven't tested in Firefox or any other browsers.

Edited Unassigned: AutoCompleteExtender only works until partial postback in Chrome [27599]

$
0
0
Problem solved - this had to do with the way JavaScript code is used in the OnClientPopulated method - be careful which samples to use from the internet. This issue can be closed/removed.

I have a page using a master page, which has an updatepanel and updateprogress in it. On the child page I have a textbox with an AutoCompleteExtender making use of the OnClientPopulated method to format the display of the information retrieved from the web service. In Chrome, this method is called fine if the user executes it first, but if the user does anything else on the page first that causes a postback, the method will not function the same way, since the UL object that contains the list of items does not contain any items at the time that the method is called. However, the page still displays the list of options as returned from the web service below the textbox, albeit that they are not formatted by the OnClientCompleted method. It works fine in IE 7 and above, no problems. Any ideas on why this would happen and only in Chrome? I haven't tested in Firefox or any other browsers.

Commented Unassigned: MaskedEditExtender's ClearMaskOnLostFocus does not work [27427]

$
0
0
Using as an example of starting the April 30 version 4.1.7.0429 version AjaxControlToolkitSampleSite.zip shifting the focus on the textbox the page is not erased the mask, the result is visible in the attached figure.
Comments: Is this ever going to be fixed?

Commented Issue: AjaxFileUpload - Bug Uploading .docx files [27357]

$
0
0
I've had trouble uploading .docx files using AjaxFileUploader...they seemed to be ignored even though "docx" was in AllowedFileTypes.

The problem arises in the following function in AjaxFileUpload.js, where it turns out that file.type of a word document (.docx file) is "application/vnd.openxmlformats-officedocument.wordprocessingml.document" and it's actually using this as a comparison against the list of file types.

```
_html5AddFileInQueue: function (files) {
debugger;
for (var i = 0; i < files.length; i++) {
var file = files[i];
var fileType;
if (file.type != '') {
fileType = file.type.substring(file.type.lastIndexOf('/') + 1);
}
else {
fileType = file.name.substring(file.name.lastIndexOf('.') + 1);
}
if (this._validateFileType(fileType)) {
var uploadableFile = new Object();
uploadableFile.file = file;
uploadableFile.id = Sys.Extended.UI.AjaxFileUpload.utils.generateGuid();
this._addToQueue(uploadableFile);
}
else {
}
}
}
```

I'm not sure when using file.type (rather then the end of file.name) would be appropriate, but simply removing the file.type comparison seems to fix the problem for me and lets me upload .docx files as expected.

```
_html5AddFileInQueue: function (files) {
debugger;
for (var i = 0; i < files.length; i++) {
var file = files[i];
var fileType;

fileType = file.name.substring(file.name.lastIndexOf('.') + 1);

if (this._validateFileType(fileType)) {
var uploadableFile = new Object();
uploadableFile.file = file;
uploadableFile.id = Sys.Extended.UI.AjaxFileUpload.utils.generateGuid();
this._addToQueue(uploadableFile);
}
else {
}
}
},
```
Comments: Maybe this can help somebody, I have applied this JS workaround: ``` <script type="text/javascript"> function FixUploadControlExtender() { if (!Sys) return; if (!Sys.Application) return; var els = Sys.Application.getComponents(); if (!els) return; for (i = 0; i < els.length; i++) { if (typeof els[i]._allowedFileTypes !== "undefined") { els[i]._allowedFileTypes = 'gif,png,jpg,doc,docx,txt'; } } } if (Sys) Sys.Application.add_load(FixUploadControlExtender); </script> ``` Obviously you must change the allowedFileTypes assignment as you need.

Created Unassigned: v7.1213 has way too many dependencies.. [27600]

$
0
0
The new v7.1213 seems to bring in so many dependencies, which has bloated the size of a simple (no touch) deployment by about 4MB.

Surely there is a way to only include the Windows Azure dependencies if they are actually desired. At the moment the Nuget package seems to bring in everything.. which is
AjaxControlToolkit (cool, this is needed obviously)
HtmlAgilityPack (yep, for the white-list parser)
Microsoft Ajax Minifier (ok..)
JSON.Net (ok...)
Windows Azure Storage (I don't want this..)
Windows Azure Configuration Manager (I really don't want this..)
ODataLib (getting annoying...)
WCF Data Services Client (I don't use OData so this is pointless)
EdmLib (getting super annoying now..)
System.Spatial (seriously??)

Why bundle in so much Azure stuff when most people won't really need it?
Perhaps splitting this into two packages, an AjaxControlToolkit Basic, and an AjaxControlToolkit Azure

Commented Issue: PieChart doesn't render all segments correctly [27373]

$
0
0
AjaxToolkit Version: 4.1.7.123
Using IE9.

When populating the PieChart via code if a segment covers more than approx 50% then it isn't displayed correctly.

Code:

string[] surveyItems = new string[3] { "Yes", "No", "Don't Know" };
int[] surveyAnswers = new int[3] { 1, 5, 1 };

for (int i = 0; i < 3; i++)
{
PieChartValue pcv = new PieChartValue();
pcv.Category = surveyItems[i].ToString();
pcv.Data = surveyAnswers[i];
PieChart1.PieChartValues.Add(pcv);
}

This issue can also be replicated by 'hardcoding' the values in the aspx page.

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:PieChart ID="PieChart1" runat="server">
<PieChartValues>
<asp:PieChartValue Category="Yes" Data="1" PieChartValueColor=""
PieChartValueStrokeColor="" />
<asp:PieChartValue Category="No" Data="5" PieChartValueColor=""
PieChartValueStrokeColor="" />
<asp:PieChartValue Category="Don't Know" Data="1" PieChartValueColor=""
PieChartValueStrokeColor="" />
</PieChartValues>
</asp:PieChart>



Comments: same problem with latest Toolkit release and IE11/Chrome

Created Unassigned: RequiredFieldExtender Issue with Dotnet fwk 4.5 [27601]

$
0
0
Hello,

We are running into issues related to the javascript missing semi-colon (;) in the RequiredFieldExtender from AjaxControToolkit on Dotnet fwk 4.5.

These extenders were wroking normally uptill the dotnet 4.0 , but as soon as we upgraded the srver to the framework 4.5 this issue started to surface in our legacy code.

Note: our legacy code is working fine fine and we have no reason to change the code till date.


See screenshot attached with the error message in the Chrome (Developer Script Console)


Created Unassigned: ModalPopupExtender: unable to get value of the property 'UI' error [27602]

$
0
0
Using VS2010, and I've tried the 3.5 and 4.0 distributions.

"Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined"

The toolkit is registered:

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

I have a ScriptManager referenced (I've also tried with the toolkit scriptmanager)

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

I have a panel with some sample controls

<asp:panel ID="pnlPopup" runat="server" style="background-color:Blue; display:none">
<asp:TextBox ID="txtPopup" runat="server" />
</asp:panel>

And a ModalPopupExtender

<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="pnlPopup" TargetControlID="lblAddMessage" >
</asp:ModalPopupExtender>);
});

The page breaks with a jscript error in "Sys.Application.add.init(function() {} on the line

$create(Sys.Extended.UI.ModalPopupBehavior, {"PopupControlID":"ContentPlaceHolder1_pnlPopup","dynamicServicePath":"/WebForms/Search.aspx","id":"ContentPlaceHolder1_ModalPopupExtender1"}, null, null, $get("ContentPlaceHolder1_lblAddMessage"));

I've seen one suggestion to toggle off display:none, and the error is still thrown. Also saw a suggestion to change the tagprefix for the registration, and the error's still thrown.

I'd much rather use this than jQuery (which I'm pretty unfamiliar with). Does anyone have an idea as to what might be happening? Thanks

Commented Unassigned: ModalPopupExtender: unable to get value of the property 'UI' error [27602]

$
0
0
Using VS2010, and I've tried the 3.5 and 4.0 distributions.

"Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined"

The toolkit is registered:

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

I have a ScriptManager referenced (I've also tried with the toolkit scriptmanager)

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

I have a panel with some sample controls

<asp:panel ID="pnlPopup" runat="server" style="background-color:Blue; display:none">
<asp:TextBox ID="txtPopup" runat="server" />
</asp:panel>

And a ModalPopupExtender

<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="pnlPopup" TargetControlID="lblAddMessage" >
</asp:ModalPopupExtender>);
});

The page breaks with a jscript error in "Sys.Application.add.init(function() {} on the line

$create(Sys.Extended.UI.ModalPopupBehavior, {"PopupControlID":"ContentPlaceHolder1_pnlPopup","dynamicServicePath":"/WebForms/Search.aspx","id":"ContentPlaceHolder1_ModalPopupExtender1"}, null, null, $get("ContentPlaceHolder1_lblAddMessage"));

I've seen one suggestion to toggle off display:none, and the error is still thrown. Also saw a suggestion to change the tagprefix for the registration, and the error's still thrown.

I'd much rather use this than jQuery (which I'm pretty unfamiliar with). Does anyone have an idea as to what might be happening? Thanks
Comments: Are you using IE 11? If so believe I have discovered a problem with some of Toolkit's auto generated JAVA scripts when using IE 11. All other version of IE seem to work ok. It looks like IE 11 has changed some of it's internal implementation of DOM access. Specifically it appears that document.selection is no longer used in IE11. The changes that were included in IE11 "break" certain functions in the auto generated toolkit java code as it is now written. I ran into this for the Editor Extender. See: [ASP.NET Forums - Editor Extender JAVA script error](http://forums.asp.net/p/1956561/5583494.aspx?Re+Editor+Extender+JAVA+script+error)

Commented Unassigned: AsyncFileUploadID=AsyncFileUpload1&rnd= [27593]

$
0
0

STEPS TO REPRODUCE ERROR

STEP 1

Configure AsyncFileUpload with normal client (JavaScript) and server methods.

__On client functions__:

uploadError(sender, args) {..} and function uploadComplete(sender, args) {..}

_On server codebehind_:

AsyncFileUpload1_UploadedComplete(..) and AsyncFileUpload1_UploadedFileError(..)

On ASPX add a button than only do a Postback.

Now upload a large file (over 4 mbytes the default limit). After detected uploadError on Client JavaScript Function, the control display on red background color the name of the file.

STEP 2

Click on the Button to generate a Postback.

RESULT:

Automatically launch a new browser tab showing a URL querystring like this:

http://localhost/ImagesInGridViewDb/tImageUpload1.aspx___?AsyncFileUploadID=AsyncFileUpload1&rnd=0008577673175017342___

What is the mean of:

?AsyncFileUploadID=AsyncFileUpload1&rnd=0008577673175017342

[See the image](https://skydrive.live.com/redir?resid=F3D7A503C5A2E642!133&authkey=!AFD5WoeoR16nmUg&v=3&ithint=photo%2c.JPG)






Comments: Hi. Indeed, in __AsyncFileUpload.pre.js__ (AjaxControlToolkit source code), in _onload: function (e) {..} executes the following lines that create the URL to postback: ``` mainForm.action = url + 'AsyncFileUploadID=' + this.get_element().id + '&rnd=' + Math.random().toString().replace(/\./g, ""); mainForm.target = this._iframeName; ``` The following solution works in Firefox 25, Opera 11, Chrome 21 and perhaps in other versions of these browsers, but works in IE7: ``` <script type="text/javascript"> var displayElement; // Initializes global variables and session state. function pageLoad() { displayElement = $get("ResultId"); } function uploadError(sender, args) { var ArchivoNombre = args.get_fileName(); var MensajeError = args.get_errorMessage(); var Mensaje = "Archivo no cargado: " + ArchivoNombre + " / ERROR..." + MensajeError; //2013-12-18 clearContents("#D6D5D9"); //clearContents("White"); form1.action = "WebForm1.aspx"; form1.enctype = "multipart/form-data"; form1.target = ""; displayElement.innerHTML = Mensaje; } function uploadStarted(sender, args) { } function uploadComplete(sender, args) { } function clearContents(colorName) { var AsyncFileUpload = $get("<%=AsyncFileUpload1.ClientID%>"); var txts = AsyncFileUpload.getElementsByTagName("input"); for (var i = 0; i < txts.length; i++) { var elemento = txts[i]; if (elemento.type == "text") { elemento.value = ""; elemento.style.backgroundColor = colorName; elemento.style.borderStyle = "solid" elemento.style.borderColor = "#A7A6A8"; elemento.style.borderWidth = "1px"; elemento.readonly = "readonly"; //elemento.style.opacity = 0; } //cuando elemento.type = file, lo resetea if (elemento.type == "file") { elemento.value = ""; //elemento.style.opacity = 0; } } } </script> ``` See on function uploadError that I have reassigned some properties of the form1: action, enctype, target. And I called to function clearContents to reset the INPUTs elements in the AsyncFileUpload. The HTML of the WebForm1.aspx: ``` <form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="True"> </asp:ToolkitScriptManager> <asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" Width="350px" onclientuploadcomplete="uploadComplete" onclientuploaderror="uploadError" onclientuploadstarted="uploadStarted" onuploadedcomplete="AsyncFileUpload1_UploadedComplete" onuploadedfileerror="AsyncFileUpload1_UploadedFileError" UploaderStyle="Modern" /> <p> <span style="background-color:Aqua" id="ResultId"></span> </p> <asp:Button ID="Button1" runat="server" Text="Generate Postback" /> </div> </form> ``` In codebehind only define the methods for the test: ``` protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e) { string x = ""; } protected void AsyncFileUpload1_UploadedFileError(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e) { string x = ""; } ``` I would like you to try this code or suggest a better solution for this problem. I also hope some solution for IE7 option.

Edited Unassigned: Version 4.1.7.1005. AsyncFileUploadID=AsyncFileUpload1&rnd= [27593]

$
0
0

STEPS TO REPRODUCE ERROR

STEP 1

Configure AsyncFileUpload with normal client (JavaScript) and server methods.

__On client functions__:

uploadError(sender, args) {..} and function uploadComplete(sender, args) {..}

_On server codebehind_:

AsyncFileUpload1_UploadedComplete(..) and AsyncFileUpload1_UploadedFileError(..)

On ASPX add a button than only do a Postback.

Now upload a large file (over 4 mbytes the default limit). After detected uploadError on Client JavaScript Function, the control display on red background color the name of the file.

STEP 2

Click on the Button to generate a Postback.

RESULT:

Automatically launch a new browser tab showing a URL querystring like this:

http://localhost/ImagesInGridViewDb/tImageUpload1.aspx___?AsyncFileUploadID=AsyncFileUpload1&rnd=0008577673175017342___

What is the mean of:

?AsyncFileUploadID=AsyncFileUpload1&rnd=0008577673175017342

[See the image](https://skydrive.live.com/redir?resid=F3D7A503C5A2E642!133&authkey=!AFD5WoeoR16nmUg&v=3&ithint=photo%2c.JPG)






Commented Unassigned: ModalPopupExtender: unable to get value of the property 'UI' error [27602]

$
0
0
Using VS2010, and I've tried the 3.5 and 4.0 distributions.

"Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined"

The toolkit is registered:

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

I have a ScriptManager referenced (I've also tried with the toolkit scriptmanager)

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

I have a panel with some sample controls

<asp:panel ID="pnlPopup" runat="server" style="background-color:Blue; display:none">
<asp:TextBox ID="txtPopup" runat="server" />
</asp:panel>

And a ModalPopupExtender

<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="pnlPopup" TargetControlID="lblAddMessage" >
</asp:ModalPopupExtender>);
});

The page breaks with a jscript error in "Sys.Application.add.init(function() {} on the line

$create(Sys.Extended.UI.ModalPopupBehavior, {"PopupControlID":"ContentPlaceHolder1_pnlPopup","dynamicServicePath":"/WebForms/Search.aspx","id":"ContentPlaceHolder1_ModalPopupExtender1"}, null, null, $get("ContentPlaceHolder1_lblAddMessage"));

I've seen one suggestion to toggle off display:none, and the error is still thrown. Also saw a suggestion to change the tagprefix for the registration, and the error's still thrown.

I'd much rather use this than jQuery (which I'm pretty unfamiliar with). Does anyone have an idea as to what might be happening? Thanks
Comments: Thanks for the response, Rdavidd, but this seems like a more gnarly issue. The first toolkit I downloaded was 4.0, and it was released, iirc, last Saturday. I'd expect it to play nice with all the current versions of IE. As always seems to happen, this was a toss-off request from my project manager, which consumed half my day. I've used custom control kits from DevExpress, Infragistics and other vendors before, but have never had these kinda problems. Part of the problem may lie with the fact that I've got so much going on in this page. MasterPage Page I'm working on Panel on the page I'm working on which is dynamically shown/hidden I've spent way too much time on middle-tier or backend stuff recently. The ASP.NET server controls are things that have escaped my attention for the last six or seven years.
Viewing all 4356 articles
Browse latest View live


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