How to fix Devexpress ASpxUploadControl control when pressing Add button in firefox? - devexpress

Hi
I'm using ASpxUploadControl from devexpress asp.net tools, 'Add' button was allowed and when I press it in Firefox4 I get this javascript error:
this.fileInputSeparatorTemplateNode is undefined
Source File: http://localhost:21390/DXR.axd?r=1_53
Line: 370
But when using it on IE8 every thing is all right, any help with this ?

which version of DX controls are you using? I tried to reproduce the problem using the ASPxUploadControl - Multi-File Upload demo (it is built using the latest, 10.2.8, release) and do not see this issue. Please try to install the same version, perhaps it will help.

Related

Visual Studio 2022 ASP.NET Core 6 Default application and Add folder to workspace in Chrome DevTools is not working anymore

After some update to either Visual Studio (I have the same issue in both VS2019 and VS2022) or Chrome I can no longer update the CSS in DevTools and have it reflect and persist the changes to site.css file in my project. Instead when I try to change a CSS property I get the following in the DevTools console:
Unable to find a stylesheet to update. Updating all local css files.
15:54:01.800 aspnetcore-browser-refresh.js:82
And the green dot disappears from my CSS pane immediately after I hit the up or down arrow on my keyboard to try and change the CSS value.
Why is that? It used to work not too long ago. I think it's been broken for me for half a year or so now.
I've been googling but haven't find any good resources. Or maybe I'm the only one coding directly in Chrome? :) Surely this can't be the case?
If anyone knows a workaround please share because I'm really frustrated atm :)
Disabling "Enable CSS Auto-Sync" seems to do the trick.
Update 1: The above no longer works for me for some reason. I managed to find another fix on SO: https://stackoverflow.com/a/70096917/687549
And here are some screenshots:
Update 2: Update 1 works when you only need to update the CSS directly in Chrome. It's better to have Hot Reload enabled and the set the following setting to None - then you'll get the best of both worlds (Hot Reload + Edit CSS directly in Chrome using workspaces): https://stackoverflow.com/a/68954979/687549
Update 3: I'm now using VSCode. If none of the above works try the following (block .js file in Network tab in Chrome DevTools): https://stackoverflow.com/a/68966524/687549

MonoDevelop ASP.NET parser error using inline server tags inside html tag attribute

I've compiled monodevelop for mac, version 4.1.4(build 225) and while everything seems to work, I'm getting a parser error whenever I put a server tag inside an attribute of a html tag. For example, this works:
<span id='test'><%=DateTime.Now.Day.ToString()%></span>
But this returns the parser error
<span id='<%=DateTime.Now.Day.ToString()%>'>test</span>
I've used all the latest mono runtimes, and tried C# and VB.NET projects without success. Can anyone help me out ?
http://forums.xamarin.com/discussion/4287/bug-3588-nested-div-tags-throwing-parser-errors-in-html-documents
Xamarin studio seems to have the same problem as MonoDevelop. I updated both and they both broke around the same time (from memory)
The fix mentioned in the post is not in latest stable or even beta yet. I'm going to play with Alpha release, but otherwise seems you might have to go back to 4.01 from one of the comments here. Hope this helps somewhat though maybe way too late.
This issue has been resolved in MonoDevelop version 4.1.11

some time i get unspecified error in js

Sometimes we get "Unspecified error" in IE (javascript error), when using MaskedEdit.application build in framework 2.0
if i enable the debuggin javascript setting then i found this error otherwise a particular part of the page doesnot display.
If we debug we can see that it happens on below line
//only for ie , for firefox see keydown
if (document.activeElement)
{
if (e.id == document.activeElement.id)
{
hasInitialFocus = true;
}
}
when i tried to search where this code is written then i found this code in ajaxcontroltool.dll file.
and this dll is of third party and i can't change in this dll so what should i do to solve the problem.
i tried this in IE8,but i didn't get the error in IE8 it means the code run smoothly/errorless in IE8.
i get this error in IE9 as occurence ratio of once in 6 times open a page.
it became my headache if any one know please help me out of this.
It looks like a browser issue or dll issue.
Has anyone else noticed this?
Thanks and regards
shoaib
and this dll is of third party and i can't change in this dll so what should i do to solve the problem
Actually you can, as the AjaxControlToolkit is an open source project. You can download project source code from the CodePlex: http://ajaxcontroltoolkit.codeplex.com/ and customize it for your needs

Drop-down menu of Dojo do not open up in QtWeb browser

I am using QtWeb browser (www.qtweb.net) for my development. When I try to open the following URL in the browser, the drop-down menus of the buttons do not open up:
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_Button.html
This issue is not seen across other browsers.
Any workarounds/suggestions/ideas would be appreciated.
I encountered the same problem. Interestingly, the popup menus do not work since version 1.7.1.
This is not bug of dojo. This is some mistake in QtWebKit. The problem in touchpad device that defined by default in precomiled qt webkit libs (even if the touchpad does not exists physically).
Temporary solution is to edit dojo/has.js file (find this lines in dojo >= 1.7.1):
if(has("host-browser")){
var agent = navigator.userAgent;
has.add("dom-addeventlistener", !!document.addEventListener);
has.add("touch", "ontouchstart" in document); <<<<< Comment this line
has.add("device-width", screen.availWidth || innerWidth);
has.add("agent-ios", !!agent.match(/iPhone|iP[ao]d/));
has.add("agent-android", agent.indexOf("android") > 1);
}
Here another solution (more painfully):
Link to the helpful message source
You must recompile QtWebKit with DEFINES+=ENABLE_TOUCH_EVENTS=0 that defined in WebCore/features.pri.
Then you qt web projects will be work properly!

Error: Object Expected Code 0 Char 1 Line 474

done some html code updates on my company's asp.net website and the above error appears.
i dont have a line 474 on the errored file.
this error only on IE, and not FF.
anybody?
Check inside the source control and try eliminating the changes 1 by 1 until the problem is under control. Then you should have the change that caused it.
It's a javascript error. You're trying to dereference a null pointer in javascript.
These go quietly unless Script Debugging is turned on in IE. If that's the case, you can debug the error by choosing to debug with Visual Studio. Visual Studio Express Web Developer may do as well.
You may be able to see the bug in Firefox as well. Go to "Tools" > "Error Console" in Firefox. Select "Errors", then "Clear" toolbar buttons. Refresh the page then you may see the actual javascript line that's causing the error.
I'll bet you DO have a line 474. Maybe not in your aspx page in Visual Studio, but probably in your browser window. Run the page and view source inside your browser. Then go to line 474 (maybe by pressing CTRL-G). That should point you to the spot.
Another possibility is that the JS error is talking about line 474 in a linked .js file.
Have you tried debugging the page in Visual Studio have you been editing in Notepad? If you debug in VS, you'll see the JS error right away.
As mentioned this codingforums thread, in JScript (IE's equivalent to JavaScript) you should avoid using variable names that are equal to your HTML field names or reserved words for JavaScript/JScript (and possibly HTML?).
So avoid the likes of:
var myname = document.myform.myname.value;
var text = document.myform.myname.value;

Resources